예제 #1
0
        public double Random(double lower, double upper, bool floating)
        {
            var result = lower + _random.Random() * upper;

            return(floating ? result : (result < 0 ? _lodashMath.Ceil(result) : _lodashMath.Floor(result)));
        }
예제 #2
0
 public double Ceil(double number, int precision = 0) => _lodashMath.Ceil(number, precision);