Shuffles a list using the in-place Fisher-Yates shuffling algorithm.
- Namespace
- RandN
- Containing Type
- RngExtensions
Syntax
public static void ShuffleInPlace<TRng, T>(this TRng rng, IList<T> list) where TRng : IRng
Type Parameters
Name | Description |
---|---|
TRng | |
T |
Parameters
Name | Type | Description |
---|---|---|
rng | TRng | The RNG used to shuffle the list. |
list | IListThe list to be shuffled. | |