commit | be40db07c61030d1855a0d173eb30645968d6586 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:12:14 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:12:14 2009 +0000 |
tree | 8be999e7deb59233589be0f34fd0ebded477d642 | |
parent | 59e6eb1c3b8170f20754e5d863e7c2316212d59a [diff] [blame] |
Issue 6261: Clarify behavior of random.uniform().
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 @@ ## -------------------- 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 --------------------