Randomized Collection<T> Constructor
Definition
Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Randomized | Constructs a new RandomizedCollection<T>. |
Randomized | Constructs a new RandomizedCollection<T>. |
RandomizedCollection<T>(IEnumerable<T>)
Constructs a new RandomizedCollection<T>.
public RandomizedCollection(
IEnumerable<T> list
)
Parameters
- list IEnumerable<T>
- An object that implements the IEnumerable interface.
Exceptions
ArgumentNullException | list is null. |
RandomizedCollection<T>(IEnumerable<T>, Random)
Constructs a new RandomizedCollection<T>.
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. |