summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorAllen Riddell <abr@ariddell.org>2014-02-27 22:10:56 -0500
committerAllen Riddell <abr@ariddell.org>2014-02-27 22:10:56 -0500
commit615d230aed9af9a5fbeb43fe9a0757831e70bf34 (patch)
tree42ce3a139a5b22fae1c9a64f3fc5ca0bf53744d2 /numpy/random
parentf1aab14e17a7a92baad4857be6a3bb3c3106e0ec (diff)
downloadnumpy-615d230aed9af9a5fbeb43fe9a0757831e70bf34.tar.gz
DOC: Fix typo in np.random.choice documentation
np.random.permutation returns an array, which can be sliced.
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/mtrand.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index 27689a9e1..4761c6907 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -984,7 +984,7 @@ cdef class RandomState:
>>> np.random.choice(5, 3, replace=False)
array([3,1,0])
- >>> #This is equivalent to np.random.shuffle(np.arange(5))[:3]
+ >>> #This is equivalent to np.random.permutation(np.arange(5))[:3]
Generate a non-uniform random sample from np.arange(5) of size
3 without replacement: