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