Pcg64DxsmEngine.Next Method

Advances the engine by one step and returns the native word produced for that step.

Definition

Namespace: Numerics.NET.Random.Engines
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public ulong Next()

Return Value

UInt64
A T value produced for the stepped state.

Implements

IScalarEngine<T>.Next()

Remarks

Next() performs a state transition and returns the output value for that new state. The exact ordering between transition and output is algorithm-specific; some engines compute the output from the previous state and then advance, while others advance first and then compute the output. Implementations must perform the transition in the documented order for the specific engine.

See Also