This question already has an answer here:
- Generating Unique Random Numbers in Java 16 answers
- Java generating non-repeating random numbers 8 answers
I am trying to write a bingo game on java and part of it is to draw random numbers from 1 to 20 but one number shouldn't be drawn more than once. So my question is how can I do that?
Aucun commentaire:
Enregistrer un commentaire