示例#1
0
 public static float GetRandomFloat(double maximum = 1.0, double minimum = 0.0)
 {
     return((float)(ThreadSafeRandom.Get().NextDouble() * (maximum - minimum) + minimum));
 }
示例#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)));
 }
示例#3
0
 public static int GetRandomInt(int min, int max)
 {
     return(ThreadSafeRandom.Get().Next(min, max));
 }