title: Random select rows via JPA
body: <p>In Mysql, </p>
  
  <pre><code>SELECT id FROM table ORDER BY RANDOM() LIMIT 5
  </code></pre>
  
  <p>this sql can select 5 random rows. How to do this via JPA Query (Hibernate as provider, Mysql database)?</p>
  
  <p>Thanks. </p>