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 次。