You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
228 B
14 lines
228 B
4 weeks ago
|
# shuffle
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.shuffle(array)
|
||
|
```
|
||
|
|
||
|
Given an array, scramble the order and return it.
|
||
|
|
||
|
```js
|
||
|
chance.shuffle(['alpha', 'bravo', 'charlie', 'delta', 'echo']);
|
||
|
=> ['echo', 'delta', 'alpha', 'charlie', 'bravo']
|
||
|
```
|