예제 #1
0
 private double InternalNextDouble(double min, double max)
 {
     return(WallMath.BoundedDouble(max, NextDouble() * (max - min) + min));
 }
예제 #2
0
 public double NextDouble(double max)
 {
     Validate.Validate.Hard.IsPositive(max, () => $"Expected {max} to be positive.");
     return(WallMath.BoundedDouble(max, NextDouble() * max));
 }