示例#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);
 }