Resets the state of the random number generator with a seed.
This function resets the state of the global random number generator for the current device. Be careful that generators for other devices are not affected.
Parameters: seed (None or int) – Seed for the random number generator. If
None, it uses
os.urandom()if available or
time.clock()otherwise. Note that this function does not support seeding by an integer array.