Random Stream Source<TRandom>.Advance Method
Advances the next index by the specified count without generating streams.
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
public abstract void Advance(
ulong count
)Parameters
- count UInt64
- The number of indices to skip.
Implements
IRandomStreamSource<TRandom>.Advance(UInt64)Remarks
This method increments NextIndex by count without creating RNG instances. It is useful for skipping ahead in the stream sequence.
The cost of this operation depends on the implementation:
- RandomStreamTree<TRandom>: O(1) - just increments a counter
- RandomStreamPartition<TRandom>: O(count) - must perform jump operations