I need to generate random numbers that can be divided by 2 so : 2 4 6 8 10 12 14 16 18 .....
My looks like:
Random random = new Random(); int i = random.nextInt(20);
Hopefully you know what I want and you can help me.
Aucun commentaire:
Enregistrer un commentaire