lundi 26 mars 2018

Random in Java often generating same value

enter image description here

I'm using this to generate values between 5 to 13

 int randomGeneratedLevelValue = ThreadLocalRandom.current().nextInt(5, 13);

How to make same matches fewer?




Aucun commentaire:

Enregistrer un commentaire