Skip to content

I have a better way to solve exercise 12 #218

Description

@anthonyduong9

I think

rng = np.random.default_rng()
x = rng.random((3, 3, 3))

would be better than

Z = np.random.random((3,3,3))

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.".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions