dimanche 29 mars 2020

Confused with the random method Math.random();

I need help understanding how

50 + (int)(Math.random() * 50);

yields a random number somewhere between 50 and 99.




Aucun commentaire:

Enregistrer un commentaire