System.Random.NextDouble Method

Returns a random floating-point number between 0.0 and 1.0.

Syntax

public virtual double NextDouble ()

Returns

A double-precision floating point number greater than or equal to 0.0, and less than 1.0.

Remarks

This method is the public version of the protected method, Random.Sample.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0