vendredi 4 octobre 2019

Can random.uniform(0,1) ever generate 0 or 1?

In the documentation it is said that there is a chance that uniform(0,1) can generate the values 0 and 1.

I have run uniform(0, 1) 10000 times, but it never produced zero. Even in the case ofuniform(0, 0.001)`.

Can random.uniform(0,1) ever generate 0 or 1?




Aucun commentaire:

Enregistrer un commentaire