randomgen.pcg64.LCG128Mix.seed

LCG128Mix.seed(seed=None, inc=None)

Seed the generator

This method is called at initialization. It can be called again to re-Seed the generator seed and inc must both be set for a sequence to be reproducible.

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 seed using a SeedSequence which initializes using system-provided entropy.

inc=None

The increment in the LCG. Can be an integer in [0, 2**128) or None. If inc is None, then it is initialized using a SeedSequence (which is shared with seed if seed is also None).