Skip to content

arrShuffle

Shuffle the order of the given array and return.

Parameters

NameTypeRequiredDefault
arrayany[]

Returns

any[]

Examples

javascript
arrShuffle([1, 2, 3, 4]); // Returns [4, 2, 3, 1]
dart
arrShuffle([1, 2, 3, 4]); // Returns [4, 2, 3, 1]
python
arrShuffle([1, 2, 3, 4])  # Returns [4, 2, 3, 1]

Released under the MIT License