一种打乱数组的方法

Random r = new Random(); 
for (int i = 0; i < paras.Count; i++) 
{ 
    int j = i + r.Next(paras.Count - i); 
    object t = paras[j]; 
    paras[j] = paras[i]; 
    paras[i] = t.ToString(); 
}

标签: C#