Exemplo n.º 1
0
 public static float GetRandomFloat(double maximum = 1.0, double minimum = 0.0)
 {
     return((float)(ThreadSafeRandom.Get().NextDouble() * (maximum - minimum) + minimum));
 }
Exemplo n.º 2
0
 public static Vector3 GetRandomVector(int minValue, int maxValue, float fix_y = 1.0f)
 {
     return(new Vector3(ThreadSafeRandom.Get().Next(minValue, maxValue), fix_y, ThreadSafeRandom.Get().Next(minValue, maxValue)));
 }
Exemplo n.º 3
0
 public static int GetRandomInt(int min, int max)
 {
     return(ThreadSafeRandom.Get().Next(min, max));
 }