randomgen.pcg64.PCG64DXSM.seed

PCG64DXSM.seed(seed=None, inc=0)

Seed the generator

This method is called at initialization. It can be called again to re-Seed the generator

Parameters:
seed=None

Random seed initializing the pseudo-random number generator. Can be an integer in [0, 2**128), a SeedSequence instance or None (the default). If seed is None, a new SeedSequence is created using entropy from the operating system.

inc=0

The increment in the LCG. Can be an integer in [0, 2**128) or None. If inc is None, then it is initialized using entropy. The default is None.

Raises:

ValueError – If seed values are out of range for the PRNG.