标签:blog java io for 数据 ar div cti log
<script> var a=["1","2","3","4","5"]; shuffleArray(a); alert(shuffleArray(a)); function shuffleArray(array) { for (var i = array.length - 1; i > 0; i--) { var j = Math.floor(Math.random() * (i + 1)); var temp = array[i]; array[i] = array[j]; array[j] = temp; } return array; } </script>
标签:blog java io for 数据 ar div cti log
原文地址:http://www.cnblogs.com/wqing/p/3934859.html