numpy.random.seed#

random.seed(seed=None)#

Reseed the singleton RandomState instance.

Notes

This is a convenience, legacy function that exists to supportolder code that uses the singleton RandomState. Best practiceis to use a dedicatedGenerator instance rather thanthe random variate generation methods exposed directly inthe random module.

On this page