diff options
author | Michael Seifert <michaelseifert04@yahoo.de> | 2017-04-20 01:30:09 +0200 |
---|---|---|
committer | Michael Seifert <michaelseifert04@yahoo.de> | 2017-04-20 21:59:42 +0200 |
commit | 1a0f64bc9055fa63d9e399d5430cb67d6c2a421a (patch) | |
tree | c75980fc18d5dda1a683a7f4d23d9237ab55affb /numpy/random | |
parent | c853b93c1823711b7a9bf3992c63ab55ac27fc38 (diff) | |
download | numpy-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.pyx | 4 |
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 |