MoreEnumerable.RandomSubset Method

Overload List

RandomSubset<T>(IEnumerable<T>, Int32) Returns a sequence of a specified size of random elements from the original sequence.
RandomSubset<T>(IEnumerable<T>, Int32, Random) Returns a sequence of a specified size of random elements from the original sequence. An additional parameter specifies a random generator to be used for the random selection algorithm.

See Also