Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkilgour committed Nov 13, 2015
1 parent 99b186a commit 024dc0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -80,6 +80,14 @@ Generates a random item from an array
chancer.fromArray([ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]); // 6
```

### chancer.shuffleArray( arr )
Generates an array shuffled into a random order
**arr:** *(array)* Array of items
**return:** *(integer)* Returns the array shuffled into a random order
```js
chancer.shuffleArray([ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]); // [7, 3, 9, 4, 1, 6, 2, 5, 8]
```

## Browser Support
Tested in the following browsers

Expand Down

0 comments on commit 024dc0e

Please sign in to comment.