Anywhere we are generating numbers using np.random.rand (or similar) We should allow the user to pass an argument for a generator.
It would be numpy.random.Generator, int, or None, (in the case of int or None, it would create a new generator with numpy.random.default_rng(seed)
Anywhere we are generating numbers using
np.random.rand
(or similar) We should allow the user to pass an argument for a generator. It would benumpy.random.Generator
,int
, orNone
, (in the case ofint
orNone
, it would create a new generator withnumpy.random.default_rng(seed)