pazguille / shuffle-array

Randomize the order of the elements in a given array for the browser and node.js.
http://pazguille.github.io/shuffle-array/
MIT License
168 stars 25 forks source link

Add a static method to return a random element of the array #4

Closed pazguille closed 11 years ago

pazguille commented 11 years ago
shuffle.pick([1, 2, 3]) // 2