RandomSubsetExtension Class

RandomSubset extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
C#
public static class RandomSubsetExtension
Inheritance
Object    RandomSubsetExtension

Methods

RandomSubsetT(IEnumerableT, Int32) Returns a sequence of a specified size of random elements from the original sequence.
RandomSubsetT(IEnumerableT, 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