title: django - 1. select 2. filter 3. then cut
body: <p>I am trying to do this logic: </p>
  
  <pre><code>1. take all objects
  2. filter them: all objs which has rate value &gt;= 4
  3. then take randomly 4 out of them. 
  </code></pre>
  
  <p>how can i take randomly 4 out of them? not just cutting from end</p>
  
  <p>this is my code:<br>
   <code>MyObj.objects.filter(objects__rate__gte=4).distinct('id').order_by('-id')[:4]</code> </p>