RandomizedCollection<T> Constructor

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

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

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

ArgumentNullException

list is null.

-or-

random is null.

See Also