数组随机排序

Arr1.sort(function(){return Math.random()>0.5?-1:1;});  

原文地址:https://www.cnblogs.com/sunhk/p/4694373.html