randomgen.mt64.MT64.seed

MT64.seed(seed=None)

Seed the generator

Parameters:
seed=None

Random seed used to initialize the pseudo-random number generator. Can be any integer between 0 and 2**64 - 1 inclusive, an array (or other sequence) of unsigned 64-bit integers, a SeedSequence instance or None (the default). If seed is None, then 312 64-bit unsigned integers are 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.