commit | d97d1fdc6097441f120b248ecbc2646045f6f277 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:18:54 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:18:54 2009 +0000 |
tree | a12bbbac01b0e069dbe14eaae91721d66413595d | |
parent | 75b544886bc43aa2aeb49522d9f640af116f97ab [diff] [blame] |
Issue 6261: Clarify behavior of random.uniform().
diff --git a/Lib/random.py b/Lib/random.py index 8b4c38e..568de88 100644 --- a/Lib/random.py +++ b/Lib/random.py
@@ -349,7 +349,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 --------------------