title: How to fetch random record using eloquent model
body: <p>I am trying to fetch random number of rows from table in laravel 5.7, but i could not find any solution.
  I have use </p>
  
  <pre><code> Model::all()-&gt;random(2);
  </code></pre>
  
  <p>It work fine. But i need to apply where clause with it like <code>Model::select('column')-&gt;where('column','value')-&gt;random(number of rows');</code>
  So how can i achieve this using eloquent.
  Please any suggestions for me.</p>