diff options
author | Allen Riddell <abr@ariddell.org> | 2014-02-27 22:10:56 -0500 |
---|---|---|
committer | Allen Riddell <abr@ariddell.org> | 2014-02-27 22:10:56 -0500 |
commit | 615d230aed9af9a5fbeb43fe9a0757831e70bf34 (patch) | |
tree | 42ce3a139a5b22fae1c9a64f3fc5ca0bf53744d2 /numpy/random | |
parent | f1aab14e17a7a92baad4857be6a3bb3c3106e0ec (diff) | |
download | numpy-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.pyx | 2 |
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: |