Beispiel #1
0
 static public void Shuffle <T>(this IList <T> item, RandIntSource source)
 {
     for (int i = 0; i < item.Count; i++)
     {
         item.SwapValues(i, source.GetBetween(i, item.Count));
     }
 }
Beispiel #2
0
 static public int GetBetween(int a, int b)
 {
     return(SOURCE.GetBetween(a, b));
 }