randomgen.dsfmt.DSFMT.seed

DSFMT.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 is None, then 764 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.

Raises:

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