Skip to main content
`Ctrl`+`K`

# numpy.random.seed

random.seed(seed=None)

  Reseed the singleton RandomState instance.

  See also

  `numpy.random.Generator`

  Notes

  This is a convenience, legacy function that exists to support older code that uses the singleton RandomState. Best practice is to use a dedicated `Generator` instance rather than the random variate generation methods exposed directly in the random module.