Previously, randmatrix() calls np.random.seed every time. This
makes it impossible to reproduce mittens runs.
Now a global random number generator is instantiated via
np.random.default_rng.
I have not changed any interface functions and the change should be backwards compatible. A user can set the seed either by assigning a random number generator to the global variable random or assigning a seed to the global variable seed.
Previously, randmatrix() calls np.random.seed every time. This makes it impossible to reproduce mittens runs.
Now a global random number generator is instantiated via np.random.default_rng.
I have not changed any interface functions and the change should be backwards compatible. A user can set the seed either by assigning a random number generator to the global variable
random
or assigning a seed to the global variableseed
.