ShuffleInPlace<TRng, T>(TRng, IList<T>) Method
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

NameDescription
TRng
T

Parameters

NameTypeDescription
rngTRngThe RNG used to shuffle the list.
listIList<T>The list to be shuffled.