summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorMichael Seifert <michaelseifert04@yahoo.de>2017-04-20 01:30:09 +0200
committerMichael Seifert <michaelseifert04@yahoo.de>2017-04-20 21:59:42 +0200
commit1a0f64bc9055fa63d9e399d5430cb67d6c2a421a (patch)
treec75980fc18d5dda1a683a7f4d23d9237ab55affb /numpy/random
parentc853b93c1823711b7a9bf3992c63ab55ac27fc38 (diff)
downloadnumpy-1a0f64bc9055fa63d9e399d5430cb67d6c2a421a.tar.gz
DOC: Wrong return type of np.random.choice and wrong variable name
in parameter description. [ci skip]
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/mtrand.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index ee5749d14..6050a094d 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -1026,7 +1026,7 @@ cdef class RandomState:
-----------
a : 1-D array-like or int
If an ndarray, a random sample is generated from its elements.
- If an int, the random sample is generated as if a was np.arange(n)
+ If an int, the random sample is generated as if a were np.arange(a)
size : int or tuple of ints, optional
Output shape. If the given shape is, e.g., ``(m, n, k)``, then
``m * n * k`` samples are drawn. Default is None, in which case a
@@ -1040,7 +1040,7 @@ cdef class RandomState:
Returns
--------
- samples : 1-D ndarray, shape (size,)
+ samples : single item or ndarray
The generated random samples
Raises