randomgen.pcg32.PCG32.jumped

PCG32.jumped(iter=1)

Returns a new bit generator with the state jumped

The state of the returned bit generator is jumped as-if iter * 11400714819323198485 random numbers have been generated, modulo 2**64.

Parameters:
iter=1

Number of times to jump the state of the bit generator returned

Returns:

bit_generator – New instance of generator jumped iter times

Return type:

PCG32

Notes

The step size is the odd integer closest to 2**64 / phi, where phi is the Golden Ratio. As the step is odd, the state only returns to its starting value after 2**64 jumps.

Changed in version 2.5.0: The step was the integer closest to 2**64 / phi, which is even, so jumped(2**63) returned the original state.