summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-06-11 23:14:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-06-11 23:14:53 (GMT)
commit2c0cdca56447d33e714a010459ee4318fff89c66 (patch)
treef1b5910a50a1eeca3c18de9ccba48c5dc7548515 /Lib
parent4efb5d0b82becae8435057be59e20044f22130df (diff)
downloadcpython-2c0cdca56447d33e714a010459ee4318fff89c66.zip
cpython-2c0cdca56447d33e714a010459ee4318fff89c66.tar.gz
cpython-2c0cdca56447d33e714a010459ee4318fff89c66.tar.bz2
Issue 6261: Clarify behavior of random.uniform().
Diffstat (limited to 'Lib')
-rw-r--r--Lib/random.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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 --------------------