Пример #1
0
        /// <summary>Returns a random floating-point number between 0.0 and 1.0.</summary>
        /// <returns>A double-precision floating point number that is greater than or equal to 0.0, and less than 1.0.</returns>
        protected virtual double Sample()
        {
            double result = _impl.Sample();

            AssertInRange(result);
            return(result);
        }
Пример #2
0
 /// <summary>Returns a random floating-point number between 0.0 and 1.0.</summary>
 /// <returns>A double-precision floating point number that is greater than or equal to 0.0, and less than 1.0.</returns>
 protected virtual double Sample() => _impl.Sample();