示例#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));
     }
 }
示例#2
0
 static public int GetBetween(int a, int b)
 {
     return(SOURCE.GetBetween(a, b));
 }