IAdvanceable.Advance Method
Advances the RNG state by the specified number of outputs.
Definition
Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
void Advance(
ulong delta
)Parameters
- delta UInt64
- The number of NextUInt64() calls to advance by.
Remarks
This operation is computed in O(log delta) time and is equivalent to calling NextUInt64() exactly delta times.
The state advancement uses modular arithmetic consistent with the generator's period. For generators with period 2^n, advancing by delta ≥ 2^n will wrap around appropriately.