작성 : 2010-12-03 16:00 조회 : 105
var x = ['1','2','3','4','5','6','7'];
document.write(x.toString());document.write('<hr />');x.sort(function() {return 0.5 - Math.random();});document.write(x.toString());
결과
1,2,3,4,5,6,7
2,1,4,3,6,7,5