diff options
author | ldoddema <slowinthedark@gmail.com> | 2016-01-04 19:23:59 +0100 |
---|---|---|
committer | ldoddema <slowinthedark@gmail.com> | 2016-01-04 19:23:59 +0100 |
commit | 1cbc14e43560ce59b267839ca1e6b1e402fe0d7a (patch) | |
tree | 3e166a1ac4969d922c694e9fb697d6816a395f9c /numpy/random | |
parent | fad4dd7f25fcf9524ae2b20d3d012ebb7d3e2385 (diff) | |
download | numpy-1cbc14e43560ce59b267839ca1e6b1e402fe0d7a.tar.gz |
DOC: high arg is mandatory for mtrand._rand_int32
Diffstat (limited to 'numpy/random')
-rw-r--r-- | numpy/random/mtrand/mtrand.pyx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx index 91434cd76..3a4e132ec 100644 --- a/numpy/random/mtrand/mtrand.pyx +++ b/numpy/random/mtrand/mtrand.pyx @@ -681,19 +681,15 @@ def _rand_int32(low, high, size, rngstate): Return random np.int32 integers between `low` and `high`, inclusive. Return random integers from the "discrete uniform" distribution in the - closed interval [`low`, `high`]. If `high` is None (the default), - then results are from [0, `low`]. On entry the arguments are presumed + closed interval [`low`, `high`]. On entry the arguments are presumed to have been validated for size and order for the np.int32 type. Parameters ---------- low : int - Lowest (signed) integer to be drawn from the distribution (unless - ``high=None``, in which case this parameter is the *highest* such - integer). + Lowest (signed) integer to be drawn from the distribution. high : int - If provided, the largest (signed) integer to be drawn from the - distribution (see above for behavior if ``high=None``). + Highest (signed) integer to be drawn from the distribution. size : int or tuple of ints 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 |