Click or drag to resize
StdRandomShuffle Method (Object, Int32, Int32)
Rearranges the elements of the specified subarray in uniformly random order.

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

Parameters

a
Type: SystemObject
a the array to shuffle
lo
Type: SystemInt32
lo the left endpoint (inclusive)
hi
Type: SystemInt32
hi the right endpoint (inclusive)
Exceptions
ExceptionCondition
ArgumentNullExceptionif a is null
IndexOutOfRangeExceptionunless (0 <= lo) and (lo <= hi) and (hi < a.Length)
See Also