Example #1
0
 public void TestDerrange()
 {
     int[] list     = new int[10];
     int[] listCopy = new int[list.Length];
     for (int i = 0; i < list.Length; i++)
     {
         list[i] = i;
     }
     for (int i = 0; i <= 50; i++)
     {
         list.CopyTo(listCopy, 0);
         Probability.Derrange(listCopy);
         for (int j = 0; j < list.Length; j++)
         {
             Assert.AreNotEqual(list[j], listCopy[j]);
         }
     }
 }