Contains methods for shuffling (randomizing) the members of a collection.

Namespace: Extreme.Statistics.Random
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class Shuffler
C#
public static class Shuffler
C++
public ref class Shuffler abstract sealed

Methods

IconTypeDescription
static memberShuffle(IList, Random)
Puts the members of a collection in a random order.
static memberShuffle(IList)
Puts the members of a collection in random order.
static memberShuffle<(Of T>)(IList<(Of T>), Random)
Puts the members of a collection in a random order.
static memberShuffle<(Of T>)(IList<(Of T>))
Puts the members of a collection in random order.

Remarks

Use the Shuffler class to shuffle the elements of a collection into a random order. This class has one staticSharedstatic method, Shuffle(IList, Random), which is overloaded. The first parameter is an ICollection object. The optional second argument is the random number generator used to randomize the elements.

You can enumerate elements of a collection directly using the RandomEnumerator class.

Inheritance Hierarchy

System.Object
  Extreme.Statistics.Random.Shuffler

See Also