randomgen.mt19937.MT19937.seed¶
-
MT19937.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**32 - 1 inclusive, an array (or other sequence) of unsigned 32-bit integers, a SeedSequence instance or
None
(the default). If seed isNone
, then 624 32-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.
- seed=
- Raises:¶
ValueError – If seed values are out of range for the PRNG.