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