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, IRng
Type 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. |