Counter Based Generator 32<TEngine>.Reset Counter Method
Resets the counter to all zeros.
Definition
Namespace: Numerics.NET.Random.Generators
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
public void ResetCounter()Implements
ICounterBased<T>.ResetCounter()Remarks
This method is exactly equivalent to calling SetCounter(ReadOnlySpan<T>) with a span of all zeros. It provides a convenient way to restart the sequence from the beginning with the current key.
Consistency Protocol:
After calling ResetCounter(), the engine enters an inconsistent state where the cached block does not correspond to the current counter coordinates. Callers must invoke GenerateBlock() before using any output mapping methods (Output(Int32) or Fill(Int32, Span<T>)).