刚在网上查上一下洗牌的算法: 参考: http://blog.csdn.net/cherylnatsu/article/details/6384101 http://www.cnblogs.com/jkisjk/archive/2012/04/23/javascript_shuffle.html mark