Skip to content

ShuffleOptions

ShuffleOptions = object

Defined in: sample/shuffle.ts:5

optional algorithm?: ShuffleAlgorithm

Defined in: sample/shuffle.ts:19

The shuffle algorithm to use.

Defaults to “fisherYates”.


optional rand?: Callable<[], number>

Defined in: sample/shuffle.ts:12

A random number generator function that returns a number in the range [0, 1).

Defaults to Math.random if not provided.