title: Android Quiz App - Make Questions Random and Dynamic
body: <p>I am working on building a quiz app for Android. Once completed, the app with have around 500 questions, existing in multiple categories.</p>
  
  <p>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.</p>
  
  <ol>
  <li>I want the questions within each set to go in a random order without duplicates. In a previous project, to accomplish something similar I created an integer that would generate a random value and then check to see if that value has been used already. However, that would be incredibly memory-inefficient and since I'm working on an Android app and not a PC one, that's too important to overlook.</li>
  <li>I want each question to have random answers, other than the correct one, chosen from a pool of possible answers. So, for example, if I were to ask something like "Who ruled Britain from 1810-1820" (no actual idea on the answer), I'd want one answer to be the correct one and the other two or three to be taken from a pool of 10 European rulers. Additionally, I want the placement of the correct answer to be dynamic, so it isn't always in the same spot (so people don't just memorize the question and it's answer's location). </li>
  </ol>
  
  <p>As of now, the questions are just in a java file since I'm still in the pre-alpha stage, but I plan on moving it to a SQLite database once I get the framework for the project figured out. </p>