Skip to content

arrShuffle

Shuffle the order of the given array and return.

Parameters

NameTypeRequiredDefault
arrayany[]List<dynamic>list[Any]

Returns

any[]

List<dynamic>

list[Any]

Examples

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

Released under the MIT License