/ Gists / Shuffle the values of an array randomly
On gists

Shuffle the values of an array randomly

JavaScript JS oneliners

ex.js Raw #

const prizes = [ 'A', 'B', 'C', 'D' ]
prizes.sort(() => 0.5 - Math.random())