summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2016-01-29 09:42:12 +0000
committerRobert Kern <robert.kern@gmail.com>2016-01-29 09:42:12 +0000
commit22176f9969b526d696fa905ba74ed6c5e30f43f3 (patch)
treef15feb53e5426d488702b5821fa7b0e8d4fc9f3c /numpy
parente2805398f9a63b825f4a2aab22e9f169ff65aae9 (diff)
parent637ad965ae7555157e859a747f276c20c5f91b9a (diff)
downloadnumpy-22176f9969b526d696fa905ba74ed6c5e30f43f3.tar.gz
Merge pull request #7026 from gfyoung/uniform_bounds_bug
DOC: Clarify behavior in np.random.uniform
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/mtrand/mtrand.pyx6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/random/mtrand/mtrand.pyx b/numpy/random/mtrand/mtrand.pyx
index cf8d28cb0..a419e51a8 100644
--- a/numpy/random/mtrand/mtrand.pyx
+++ b/numpy/random/mtrand/mtrand.pyx
@@ -1496,6 +1496,12 @@ cdef class RandomState:
anywhere within the interval ``[a, b)``, and zero elsewhere.
+ When ``high`` == ``low``, values of ``low`` will be returned.
+ If ``high`` < ``low``, the results are officially undefined
+ and may eventually raise an error, i.e. do not rely on this
+ function to behave when passed arguments satisfying that
+ inequality condition.
+
Examples
--------
Draw samples from the distribution: