PiaFraus
(Ivan Gusev)
1
It seems to be there for a long time, at least from 2.7 and up until latest documentation:

https://docs.python.org/2.7/library/random.html#random.uniform

…

The end-point value `b`

may or may not be included in the range depending on floating-point rounding in the equation `a + (b-a) * random()`

.

This is not equation. It can be replaced with expression/calculation of, or something like this.

bschubert
(Brian Schubert)
2
Already fixed in the current 3.11 and later docs:

The end-point value `b`

may or may not be included in the range depending on floating-point rounding in the **expression** `a + (b-a) * random()`

(emphasis mine)

3 Likes

PiaFraus
(Ivan Gusev)
3
Oh, thank you. Very strange, I thought I clicked through all of them, but may be something didn’t work!