예제 #1
0
 public static int Random(int min, int max)
 {
     return(GlobalRandomInst.Next() % max + min);
 }
예제 #2
0
 public static double Random(double min, double max)
 {
     return(GlobalRandomInst.NextDouble() * (max - min) + min);
 }
예제 #3
0
 public static bool RandomBool()
 {
     return(GlobalRandomInst.Next() % 2 == 0);
 }