Click or drag to resize
RandomNextDouble Method
Returns a random number between 0.0 and 1.0.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual double NextDouble()

Return Value

Type: Double
A double-precision floating point number greater than or equal to 0.0, and less than 1.0.
See Also