summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/_generator.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx
index 93b1d6160..0a41f13b6 100644
--- a/numpy/random/_generator.pyx
+++ b/numpy/random/_generator.pyx
@@ -665,8 +665,8 @@ cdef class Generator:
array([3,1,0]) # random
>>> #This is equivalent to rng.permutation(np.arange(5))[:3]
- Generate a uniform random sample from a 2-D array, without
- replacement:
+ Generate a uniform random sample from a 2-D array along the first
+ axis (the default), without replacement:
>>> rng.choice([[0, 1, 2], [3, 4, 5], [6, 7, 8]], 2, replace=False)
array([[3, 4, 5], # random