Scythe-1.0.3
void scythe::lecuyer::AdvanceState ( long  e,
long  c 
) [inline]

Advances the state of the stream.

This method advances the input $n$ steps, using the rule:

\[ n = \begin{cases} 2^e + c \quad if~e > 0, \\ -2^{-e} + c \quad if~e < 0, \\ c \quad if~e = 0. \end{cases} \]

Parameters:
eThis parameter controls state advancement.
cThis parameter also controls state advancement.
See also:
GetState()
ResetStartStream()
ResetStartSubstream()
ResetNextSubstream()