Skip to content

Instantly share code, notes, and snippets.

@remibreton
Last active December 17, 2015 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remibreton/5653297 to your computer and use it in GitHub Desktop.
Save remibreton/5653297 to your computer and use it in GitHub Desktop.
function shuffle(o){
for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
return o;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment