title: how to input random numbers in a where clause in sql
body: <p>I would like to get random records based on an id column which needs to be randomly selected. I cannot use <code>rand()</code> function due to the database restrictions. But I have an id column which if I can randomly generate and ask should solve the problem. Any suggestions on how I can input random numbers to the sql where clause. I am planning to get around <strong>100000</strong> random numbers to search for.  for example </p>
  
  <pre><code>select a,id from users where id in (20, 30); 
  </code></pre>