int[] array = new int[10];for (int i = 0; i < 10; i++){array[i] = i;}Random r = new Random();for (int j = 0; j < 100; j++){int temp;int x1 = r.Next(10);int x2 = r.Next(10);temp = array[x1];array[x1] = array[x2];array[x2] = temp;}