Range of python's random.random() from the standard library

python, random

Solution

Docs are here: http://docs.python.org/library/random.html

...random(), which generates a random float uniformly in the semi-open range [0.0, 1.0).

So, the return value will be greater than or equal to 0, and less than 1.0.

Problem

Does python's random.random() ever return 1.0 or does it only return up until 0.9999..?

Original source