randomstate.prng.pcg32.seed

randomstate.prng.pcg32.seed(seed=None, stream=None)

Seed the generator.

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

Parameters:
  • seed (int, optional) – Seed for RandomState.
  • stream (int, optional) – Generator stream to use
Raises:
  • ValueError – If seed values are out of range for the PRNG.
  • TypeError – If seed values are not scalar integers.

See also

RandomState()