dimanche 5 août 2018

In java, what is the best way to set each value in an int [ ] randomly without duplicates?

I am fairly new to coding, with around 4 months of experience and self taught. I've used arrays and understand how you write them. But for this specific instance, I am looking to make the values in an array of 15 ints set between the number 1 and 15, without any duplicate values.

If I could be pointed in the right direction I would greatly appreciate it.

Thanks for reading!




Aucun commentaire:

Enregistrer un commentaire