Skip to content

Instantly share code, notes, and snippets.

@silianlinyi
Created January 6, 2014 08:01
Show Gist options
  • Save silianlinyi/8279664 to your computer and use it in GitHub Desktop.
Save silianlinyi/8279664 to your computer and use it in GitHub Desktop.
打乱数字数组
var numbers = [5, 458 , 120 , -215 , 228 , 400 , 122205, -85411];
numbers = numbers.sort(function(){ return Math.random() - 0.5});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment