RandomEnumerator<T> Constructor

Definition

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

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

ArgumentNullExceptionlist is null.

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

ArgumentNullExceptionlist is null.

-or-

random is null.

See Also