Author mark.dickinson
Recipients georg.brandl, mark.dickinson
Date 2009-06-10.21:30:26
SpamBayes Score 4.79014e-05
Marked as misclassified No
Message-id <>
The documentation for random.uniform() was recently updated to reflect 
the fact that it's possible for random.uniform(a, b) to produce the 
value b;  see issue 4979.

In a recent c.l.p. thread, Robert Kern suggested that 'it 
might be confusing to a user why random.random() returns values in a 
half-open interval while random.uniform() claims a closed interval';  
the thread itself confirms this potential for confusion.  See

Suggested extra wording for random.uniform, from Robert Kern:

"Due to floating point arithmetic, for some values of a and b, b may or 
may not be one of the possible generated results."
Date User Action Args
2009-06-10 21:30:28mark.dickinsonsetrecipients: + mark.dickinson, georg.brandl
2009-06-10 21:30:28mark.dickinsonsetmessageid: <>
2009-06-10 21:30:27mark.dickinsonlinkissue6261 messages
2009-06-10 21:30:26mark.dickinsoncreate