listnumber = listArray.length();
int min = 0;
int max = listnumber;
Random rnd = new Random();
int i = rnd.nextInt(max - min) + min;
JSONObject veriyial=listArray.getJSONObject(i);
Hi. I want to get a random number but must be different from each other
Sory my english is bad. Thx :)
Aucun commentaire:
Enregistrer un commentaire