Skip to content

Instantly share code, notes, and snippets.

@yyolk
Created April 6, 2015 22:09
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 yyolk/17705c8f37ac5e188541 to your computer and use it in GitHub Desktop.
Save yyolk/17705c8f37ac5e188541 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;
};
@yyolk
Copy link
Author

yyolk commented Apr 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment