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, then PCG64 will try to read data from /dev/urandom (or the Windows analog) if available. If unavailable, a 64-bit hash of the time and process ID is used.

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 if seed is None, else 0.

Raises:

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