numpy.random.seed
- random.seed(seed=None)
-
Reseed the singleton RandomState instance.
See also
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
Generatorinstance rather than the random variate generation methods exposed directly in the random module.
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/reference/random/generated/numpy.random.seed.html