RandomSubsetExtension Class

RandomSubset extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
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