IJumpable.LongJump Method

Jumps the RNG forward by the specified number of long jump strides.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
void LongJump(
	ulong count = 1
)

Parameters

count  UInt64  (Optional)
The number of long jumps to perform (default: 1).

Remarks

Each long jump advances the state by the distance specified in LongJumpSize. This provides greater separation between streams than Jump(UInt64).

If LongJumpSize equals JumpSize, this method delegates to Jump(UInt64).

  Caution

Long jump operations advance along the same underlying sequence. They do not create truly independent streams. For independence, use RNGs with native stream support.

See Also