CounterBasedGenerator64<TEngine>.NextSingle Method

Generates the next single-precision floating-point number.

Definition

Namespace: Numerics.NET.Random.Generators
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public float NextSingle()

Return Value

Single
A Single value in the range [0.0, 1.0).

Implements

IRandomGenerator.NextSingle()

Remarks

This method advances the generator state by one unit appropriate to the underlying engine. For 32-bit engines, this typically composes two 32-bit words in little-endian order.

See Also