8000 Merge pull request #19813 from numpy/doc/user-guide-default-rng · numpy/numpy@9fca8f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fca8f0

Browse files
authored
Merge pull request #19813 from numpy/doc/user-guide-default-rng
DOC: Fix import of default_rng
2 parents 6829957 + de5d345 commit 9fca8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/user/basics.creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ library. Below, two arrays are created with shapes (2,3) and (2,3,2),
235235
respectively. The seed is set to 42 so you can reproduce these
236236
pseudorandom numbers::
237237

238-
>>> import numpy.random.default_rn 4CCD g
238+
>>> from numpy.random import default_rng
239239
>>> default_rng(42).random((2,3))
240240
array([[0.77395605, 0.43887844, 0.85859792],
241241
[0.69736803, 0.09417735, 0.97562235]])

0 commit comments

Comments
 (0)
0