Bamboo.Prevalence.Collections.List.Choose C# (CSharp) Method

Choose() public method

public Choose ( int count ) : Array
count int
return System.Array
		public Array Choose(int count)
		{
			if (_list.Count > count)
			{
				List copy = new List(_list);
				object[] items = new object[count];
				for (int i=0; i<count; ++i)
				{
					items[i] = copy.PopAny();
				}
				return items;
			}
			else
			{
				return ToShuffledArray();
			}
		}

Same methods

List::Choose ( ) : object