diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-11 23:12:14 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-11 23:12:14 (GMT) |
commit | be40db07c61030d1855a0d173eb30645968d6586 (patch) | |
tree | 8be999e7deb59233589be0f34fd0ebded477d642 /Lib/random.py | |
parent | 59e6eb1c3b8170f20754e5d863e7c2316212d59a (diff) | |
download | cpython-be40db07c61030d1855a0d173eb30645968d6586.zip cpython-be40db07c61030d1855a0d173eb30645968d6586.tar.gz cpython-be40db07c61030d1855a0d173eb30645968d6586.tar.bz2 |
Issue 6261: Clarify behavior of random.uniform().
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index afec8a0..12b4e1b 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -333,7 +333,7 @@ class Random(_random.Random): ## -------------------- uniform distribution ------------------- def uniform(self, a, b): - """Get a random number in the range [a, b).""" + "Get a random number in the range [a, b) or [a, b] depending on rounding." return a + (b-a) * self.random() ## -------------------- triangular -------------------- |