dimanche 6 novembre 2016

How can i get random number between two range?

example: to show all the number in random manner between 1 to 10 . an example while executing first time:5,4,8,7,9,1,2,3. an example while executing first second:7,6,5,1,2,3,4,9,8

will the following code print all date between ranges in random

Random r = new Random();
int i1 = r.nextInt(80 - 65) + 65;




Aucun commentaire:

Enregistrer un commentaire