Function shuffle
- shuffle<T>(items, options?): T[]
ExperimentalType Parameters
Parameters
- items: readonly T[]
The items to shuffle
Optionaloptions: RandomOptionsThe options for the random number generator
Returns T[]
A shuffled copy of the provided items
- items: readonly T[]
Shuffles the provided array, returning a copy and without modifying the original array.
UNSTABLE: New API, yet to be vetted.