According to this :
random ()
Returns to Number with positive sign, greater than or
equal to 0 but less than 1, chosen randomly or pseudo randomly with
approximately uniform distribution over that range, using an
implementation-dependent algorithm or strategy. This function takes no
arguments.
That is, the probability of any number within the range 0 to 1 (not including 1) follows an approximate uniform distribution, which means that any number should have the same probability of appearing. While it may seem obvious, this does not mean that executing your algorithm a certain number of times, you will surely get a certain number, it means that as you continue executing it (that is, your attempts tend to infinity), the apparitions of each number should tend to be the same.