标签:
Shuffle a given array such that each position is equally likely.
算法导法里的一个算法:function randomize(A)n=A.lengthfor i=1 to nj=random(i,n)swap A[i],A[j]
[?]*Shuffle an array
原文地址:http://www.cnblogs.com/hygeia/p/5152740.html