Пример #1
0
 /// <summary>
 /// Randomize array
 /// </summary>
 /// <param name="buffer">Buffer</param>
 /// <param name="index">Index</param>
 /// <param name="length">Count</param>
 /// <param name="get">Getter</param>
 public static void Randomize <T>(T[] buffer, int index, int length, IRandomValue <T> get)
 {
     for (; length > 0; index++)
     {
         buffer[index] = get.Get();
         length--;
     }
 }
Пример #2
0
 public static void RandomThing(IRandomValue thing)
 {
     _randomThings.RegisterValues(thing.Key, thing.RandomValues);
 }