title: Fetch random records using Spring data JPA
body: <p>I want to fetch random records using Spring data JPA. I was using @Query for the same.But it is taking a long time.</p>
  
  <pre><code>@Query("select que from Question que order by RAND()")
  public List&lt;Question&gt; findRandamQuestions();
  </code></pre>
  
  <p>Which is the efficient way for doing the same?Please help!</p>