Math.random()
returns a number with 17 digits after the binary point in my console, so the probability of it being exactly 0 is astronomically low. What exactly is the point of that it can technically be 0 but never can be 1, when it is basically never going to return either of those numbers anyway? What led to this? Could someone give me some examples where this property of the Math.random()
is relevant?
jeudi 2 juin 2016
What is the point of Math.random() returning from 0 inclusive to 1 exclusive?
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire