JS的一种洗牌算法

test ·
function shuffle (arr) { var i, j,temp; for(i=arr.length-1; i>0; i--) { j = Math.floor(Math.random()* (i+1)) temp = arr[i] arr[i] = arr[j] arr[j] = temp ... 阅读全文
Looks like you've reached the end