arrShuffle
Shuffle the order of the given array and return.
Parameters
| Name | Type | Required | Default |
|---|---|---|---|
array | any[]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]