RandomEnumerator<T> Constructor

Definition

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

Overload List

RandomEnumerator<T>(IList<T>)

Constructs a new RandomEnumerator<T> object.
C#
public RandomEnumerator(
	IList<T> list
)

Parameters

list  IList<T>
A collection that implements the IList interface.

Exceptions

RandomEnumerator<T>(IList<T>, Random)

Constructs a new RandomEnumerator<T> object.
C#
public RandomEnumerator(
	IList<T> list,
	Random random
)

Parameters

list  IList<T>
A collection that implements the IList interface.
random  Random
A Random derived random number generator that is used to generate the random sequence.

Exceptions

ArgumentNullException

list is null.

-or-

random is null.

See Also