TArray.Shuffle<T> Method

Overloads

Shuffle<T>(array of T)

Shuffles the elements in the array using the Fisher-Yates algorithm.

Shuffle<T>(array of T, Integer, Integer)

Shuffles the specified count of elements in the array starting at the specified index using the Fisher-Yates algorithm.

Shuffle<T>(Pointer, NativeInt)

Shuffles the elements in the specified range in the array using the Fisher-Yates algorithm.

Shuffle<T>(array of T)

Shuffles the elements in the array using the Fisher-Yates algorithm.

Delphi
class procedure Shuffle<T>(var values: array of T)

Type Parameters

T

Parameters

values
array of T

Shuffle<T>(array of T, Integer, Integer)

Shuffles the specified count of elements in the array starting at the specified index using the Fisher-Yates algorithm.

Delphi
class procedure Shuffle<T>(var values: array of T; index: Integer; count: Integer)

Type Parameters

T

Parameters

values
array of T
index
Integer
count
Integer

Shuffle<T>(Pointer, NativeInt)

Shuffles the elements in the specified range in the array using the Fisher-Yates algorithm.

Delphi
class procedure Shuffle<T>(const values: Pointer; hi: NativeInt)

Type Parameters

T

Parameters

values
Pointer
hi
NativeInt