/
Gists
/ Shuffle the values of an array randomly
On gists
Shuffle the values of an array randomly
27.4.2022
JavaScript
JS oneliners
ex.js
Raw
#
const prizes = [ 'A', 'B', 'C', 'D' ] prizes.sort(() => 0.5 - Math.random())