RandomStreamSource<TRandom>.Seek Method

Sets the next stream index to the specified value.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public abstract void Seek(
	ulong index
)

Parameters

index  UInt64
The target index for the next stream.

Implements

IRandomStreamSource<TRandom>.Seek(UInt64)

Remarks

This method sets NextIndex to index relative to the current hierarchical path prefix. It is useful for starting enumeration at a specific offset.

This is equivalent to calling Advance(index - NextIndex) when index is greater than or equal to NextIndex.

The cost of this operation depends on the implementation:

See Also