I have a better way to solve exercise 12
Author: anthonyduong9Created Oct 1, 2024Updated Oct 21, 2024
I think
rng = np.random.default_rng()
x = rng.random((3, 3, 3))would be better than
because the documentation says "[RandomState] should only be used if it is essential to have randoms that are identical to what would have been produced by previous versions of NumPy.".
Source: rougier/numpy-100