如何生成11000的数字,并且顺序打乱

       int count = 1000;


int[] arrNum = new int[count];

for (int i = 0; i < count; i++)
{
arrNum[i]
= i + 1;
}

//打乱
Random rm = new Random();
for (int i = 0; i < count; i++)
{
int rmNum = rm.Next(i, count);
int temp = arrNum[i];
arrNum[i]
= arrNum[rmNum];
arrNum[rmNum]
= temp;
}





--------------------------

--显示表io操作
SET   STATISTICS   IO   ON 
--sql语句
SET   STATISTICS   IO   OFF 


表 'P2'。扫描计数 7,逻辑读 7 次,物理读 0 次,预读 0 次。
原文地址:https://www.cnblogs.com/panzhilei/p/1998971.html