Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created September 14, 2011 16:28
Show Gist options
  • Save OscarGodson/1217019 to your computer and use it in GitHub Desktop.
Save OscarGodson/1217019 to your computer and use it in GitHub Desktop.
var list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
list = list.sort(function(){
return Math.random() - 0.5;
});
alert(list);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment