np.random.randn, np.random.randint have been replaced with a new paradigm using a generator
wrongways opened this issue · comments
wrongways commented
See: https://numpy.org/doc/stable/reference/random/index.html#random-quick-start
Replace np.random.seed()
with rng = np.random.default_rng()
Replace np.random.randint()
with rng.integers()
Replace np.random.randn()
with rng.standard_normal()
Replace np.random.normal()
with rng.normal()
Wes McKinney commented
This is done in the 3rd edition