Beispiel #1
0
        public static double RandomMinMax(double min, double max)
        {
            if (min > max)
            {
                double copy = min;
                min = max;
                max = copy;
            }
            else if (min == max)
            {
                return(min);
            }

            return(min + (RandomImpl.NextDouble() * (max - min)));
        }
Beispiel #2
0
 public static double RandomDouble()
 {
     return(RandomImpl.NextDouble());
 }
Beispiel #3
0
 public static double RandomDouble() => RandomImpl.NextDouble();