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 : notnull, IRngType Parameters
| Name | Description |
|---|---|
| TRng | |
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| rng | TRng | The RNG used to shuffle the list. |
| list | IList| The list to be shuffled. | |