mercredi 18 novembre 2020

How do I assign a higher probability to draw the number 10 from this code?

Random rng = new Random();
int cardValue = rng.nextInt(10) + 2;

How do I assign a higher probability to draw the number 10 from this code in Java?




Aucun commentaire:

Enregistrer un commentaire