Does python's random.random() ever return 1.0 or does it only return up until 0.9999..?
Python's random.random function returns numbers that are less than, but not equal to, 1.
random.random
1
However, it can return 0.
0