var shuffle = function() {return Math.random()-.5};
var data = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
data.sort(shuffle) //-> ["G","Z","P","E","W","C","L","O","R","J","X","S","V","A","D","I","U","T","F","Q","H","B","Y","M","K","N"]
data.sort(shuffle) //-> ["E","H","X","P","B","S","L","F","D","O","W","V","U","N","A","M","Z","C","G","Q","I","J","K","Y","T","R"]
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme