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