Shuffle generator

Takes an array and randomizes it in place then returns it.

helpers.shuffle

Generator settings

Generate data to see results here.

Parameters & Example

Takes an array and randomizes it in place then returns it.

helpers.shuffle(list: T[], options: { inplace })
list
The array to shuffle.
options
The options to use when shuffling.
options.inplace
Whether to shuffle the array in place or return a new array. Defaults to false.

Example

["beta","alpha","gamma"]

Use synthetic data in a test environment.

Related generators

Explore scenarios