RandomSubsetExtension Class

RandomSubset extension.

Definition

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