RandomizedCollection<T> Constructor

Definition

Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

RandomizedCollection<T>(IEnumerable<T>)

Constructs a new RandomizedCollection<T>.
C#
public RandomizedCollection(
	IEnumerable<T> list
)

Parameters

list  IEnumerable<T>
An object that implements the IEnumerable interface.

Exceptions

ArgumentNullExceptionlist is null.

RandomizedCollection<T>(IEnumerable<T>, Random)

Constructs a new RandomizedCollection<T>.
C#
public RandomizedCollection(
	IEnumerable<T> list,
	Random random
)

Parameters

list  IEnumerable<T>
An object that implements the IEnumerable interface.
random  Random
The random number generator to use to generate the randomization.

Exceptions

ArgumentNullExceptionlist is null.

-or-

random is null.

See Also