Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.
The array to shuffle.
Returns the new shuffled array.
5.11.0
shuffle([1, 2, 3, 4])// => [4, 1, 3, 2] Copy
shuffle([1, 2, 3, 4])// => [4, 1, 3, 2]
Creates an array of shuffled values, using a version of the Fisher-Yates shuffle.