randomgen.xorshift1024.Xorshift1024.seed

Xorshift1024.seed(seed=None)

Seed the generator

This method is called when Xorshift1024 is initialized. It can be called again to re-Seed the generator For details, see Xorshift1024.

Parameters
seed{None, int, array_like[uint64], SeedSequence}, optional

Entropy initializing the pseudo-random number generator. Can be an integer in [0, 2**64), array of integers in [0, 2**64), a SeedSequence instance or None (the default). If seed is None, then data is read from /dev/urandom (or the Windows analog) if available. If unavailable, a hash of the time and process ID is used.

Raises
ValueError

If seed values are out of range for the PRNG.