title: Selecting Random Rows in MySQL
body: <p>I am developing a quiz website, and I have a database which stores all of the questions.
  There are different types of quizzes, like math, science, history, etc. All of the questions are stored in one table.</p>
  
  <p>My questions table looks like this:</p>
  
  <pre><code>questions ( qno(int)  ,type(int), question, .... ,... )
  </code></pre>
  
  <p><code>qno</code> is the primary key, and <code>type</code> is used to keep track of the quiz type.:</p>
  
  <pre><code>if type = 1 (math)
   type = 2(science)
  </code></pre>
  
  <p>Now, I want to select some random questions for each type of test. 
  For example, I may want to select some random 20 questions for only the math test.</p>
  
  <p>Does MySQL have some way to select random rows?</p>