示例#1
0
文件: Random.cs 项目: mangod9/runtime
        /// <summary>Returns a random floating-point number that is greater than or equal to 0.0, and less than 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>
        public virtual double NextDouble()
        {
            double result = _impl.NextDouble();

            AssertInRange(result);
            return(result);
        }
示例#2
0
 /// <summary>Returns a random floating-point number that is greater than or equal to 0.0, and less than 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>
 public virtual double NextDouble() => _impl.NextDouble();