samedi 24 juin 2017

Why function random return repeat only a number?

I use function Math.floor(Math.random() * 28) + 1; random a number. I have create a variable for it below:


 var number = Math.floor(Math.random() * 28) + 1;
 => number //--> repeat only a number 

Please help me explain reason above. Thanks !!




Aucun commentaire:

Enregistrer un commentaire