title: Getting lowest value in array or random value if all is the same?
body: <p>I have an array like so</p>
  
  <pre><code>Array
  (
      [5] =&gt; 0
      [6] =&gt; 0
  )
  </code></pre>
  
  <p>the key 5 and key 6 are user id's. the value 0 for both the keys are the number of posts they have.</p>
  
  <p>How do i obtain the user with the lowest post and if there are more than 1 user with the same/lowest post, select one by random.</p>
  
  <p>Thank you</p>