samedi 23 septembre 2017

How to generate 8 "pairs" of random numbers in one array ? (JAVA)

I need to create an array of 16 numbers. Each number ranges from 1-8. And there needs to be 2 of the same numbers.

for example 1 1 4 4 7 7 2 2 6 6 3 3 8 8 5 5




Aucun commentaire:

Enregistrer un commentaire