commit | 2c0cdca56447d33e714a010459ee4318fff89c66 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:14:53 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Jun 11 23:14:53 2009 +0000 |
tree | f1b5910a50a1eeca3c18de9ccba48c5dc7548515 | |
parent | 4efb5d0b82becae8435057be59e20044f22130df [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 --------------------