diff options
author | Robert Kern <robert.kern@gmail.com> | 2021-09-01 23:03:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 23:03:23 -0400 |
commit | de5d3454820cf1918b7241c2c60c26347f4f06e0 (patch) | |
tree | 41a1d2534a5daeaa61ebd56d42e2c0e49e4bab35 | |
parent | 68299575d8595d904aff6f28e12d21bf6428a4ba (diff) | |
download | numpy-de5d3454820cf1918b7241c2c60c26347f4f06e0.tar.gz |
DOC: Fix import of default_rngdoc/user-guide-default-rng
Fixes #19812 19812
-rw-r--r-- | doc/source/user/basics.creation.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/user/basics.creation.rst b/doc/source/user/basics.creation.rst index b0b54d4ed..a68def887 100644 --- a/doc/source/user/basics.creation.rst +++ b/doc/source/user/basics.creation.rst @@ -235,7 +235,7 @@ library. Below, two arrays are created with shapes (2,3) and (2,3,2), respectively. The seed is set to 42 so you can reproduce these pseudorandom numbers:: - >>> import numpy.random.default_rng + >>> from numpy.random import default_rng >>> default_rng(42).random((2,3)) array([[0.77395605, 0.43887844, 0.85859792], [0.69736803, 0.09417735, 0.97562235]]) |