Created
January 6, 2014 08:01
-
-
Save silianlinyi/8279664 to your computer and use it in GitHub Desktop.
打乱数字数组
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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