I\'m trying to create an android application which will generate random series of values (integer numbers in this case) in a given range (but NOT equal betw
in the edit code:
int idx = r.nextInt();
needs to change to:
int idx = r.nextInt(data.length);
because you want to choose a random index from your data.