Random32.NextDouble32 Method

Returns a random number between 0 and 1.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public double NextDouble32()

Return Value

Double
A double-precision floating-point number greater than or equal to zero, and less than 1.

Remarks

This method uses a single 32 bit word to generate a Double value. The resulting value therefore has only 32 random bits. The remaining bits are zero.

See Also