This question is based on my other question, make sure to take a look at it: Android - Generate non-repetitive random numbers
I have a collection that shuffles, but how can I pick the numbers one by one after "next" button is pressed?
ArrayList<Integer> list = new ArrayList<Integer>();
for (int i=1; i<11; i++) {
list.add(new Integer(i));
}
Collections.shuffle(list);
This code is executed when the app is opened.
qid =
This code is executed after "Next" button is pressed.
I'm confused on what the question id(qid) should be.
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire