Ejemplo n.º 1
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 single-precision floating point number that is greater than or equal to 0.0, and less than 1.0.</returns>
        public virtual float NextSingle()
        {
            float result = _impl.NextSingle();

            AssertInRange(result);
            return(result);
        }
Ejemplo n.º 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 single-precision floating point number that is greater than or equal to 0.0, and less than 1.0.</returns>
 public virtual float NextSingle() => _impl.NextSingle();