I am working on building a quiz app for Android. Once completed, the app with have around 500 questions, existing in multiple categories.
I can get the questions to work fine, but only in one instance: the questions are linear, meaning that they always appear in the same order and the question always has the same answers in the same order (so, for example, Question 1 always has Answers A, B, and C, Question 2 always has Answers D, E, F, etc.) I know the reason for this since I'm just swapping textviews, basically, but only because I don't know how to do what I'm trying to do.
My suggestion is you should randomize the order of the quiz's array with an integer array that contain numbers from 0 to 499. all questions will shown but not in same order. to do this, see this post: Random shuffling of an array
the second case, if I'm in your place, I will make an array of the answers, put random answers, and take a random number from 0 to 3 for the index of the right answer and