This is a pre-release version (2.5.0.dev0+git20251130.2de293a).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / random / seed

cython_function_or_method

numpy.random:seed

Signature

def seed(seed = None)

Summary

Reseed the singleton RandomState instance.

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.

See also

numpy.random.Generator

Aliases

  • numpy.random.seed

Referenced by