According to current [numpy documentation](https://numpy.org/doc/stable/reference/random/index.html), random functions should now use an instance of `default_rng` rather than `numpy.random` direct methods.
According to current numpy documentation, random functions should now use an instance of
default_rngrather thannumpy.randomdirect methods.