mardi 5 mai 2015

JQuery number generating returning incorrect length

For example:

Math.floor((Math.random() * 99999) + 10000);

Would return numbers from 10000 to 99999. (Please correct me if I am wrong)
However I get a numbers like 103783 etc. sometimes.
Why is this happening?




Aucun commentaire:

Enregistrer un commentaire