Click or drag to resize
KnuthShuffle Method
Rearranges an array of objects in uniformly random order (under the assumption that Math.random() generates independent and uniformly distributed numbers between 0 and 1).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void Shuffle(
	Object[] a
)

Parameters

a
Type: SystemObject
the array to be shuffled
See Also