Description
The readme says:
If numpy is installed, its global random state is reset at the start of every test.
Nowadays, numpy recommends numpy.random.default_rng, which returns a PRNG object and using its methods, e.g.
import numpy as np
# not passing a seed -> implicitly creates a seed from global state
rng = np.random.default_rng()
sample = rng.some_probability_distribution()
They call numpy.random.some_probability_distribution the legacy way.
Randomly supports the legacy way. It reseeds with numpy.random.seed, which doesn't affect dedicated generators (which is what one gets from default_rng).
It'd be great if randomly supported default_rng or if the README was adapted.
Description
The readme says:
Nowadays, numpy recommends
numpy.random.default_rng, which returns a PRNG object and using its methods, e.g.They call
numpy.random.some_probability_distributionthe legacy way.Randomly supports the legacy way. It reseeds with numpy.random.seed, which doesn't affect dedicated generators (which is what one gets from
default_rng).It'd be great if randomly supported
default_rngor if the README was adapted.