From de5d3454820cf1918b7241c2c60c26347f4f06e0 Mon Sep 17 00:00:00 2001 From: Robert Kern Date: Wed, 1 Sep 2021 23:03:23 -0400 Subject: DOC: Fix import of default_rng Fixes #19812 19812 --- doc/source/user/basics.creation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]) -- cgit v1.2.1