diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/random/mtrand.pyx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx index 540e19ec6..0c0c611af 100644 --- a/numpy/random/mtrand.pyx +++ b/numpy/random/mtrand.pyx @@ -848,6 +848,11 @@ cdef class RandomState: randint, shuffle, permutation Generator.choice: which should be used in new code + Notes + ----- + Sampling random rows from a 2-D array is not possible with this function, + but is possible with `Generator.choice` through its ``axis`` keyword. + Examples -------- Generate a uniform random sample from np.arange(5) of size 3: |