title: Get Authors Randomly
body: <p>how to get authors details and author page permalink randomly. I have checked the new <a href="http://codex.wordpress.org/Function_Reference/get_users" rel="nofollow" title="get user">get_users()</a> function for wordpress which is returning the author but i can not sorting them randomly. </p>
  
  <p>here is the site i am using the code: <a href="http://citystir.com" rel="nofollow">http://citystir.com</a></p>
  
  <p>Any help?</p>
  
  <hr>
  
  <p>Solution: Thanks to  theomega i have solved the isse. Here is the code just for community sharing:</p>
  
  <pre><code>$args = array('role' =&gt; 'author');
  
      $authors = get_users($args);
      shuffle($authors);
      $i = 0;
       foreach ($authors as $author): 
             if($i == 4) break;
             //do stuff
             $i++;
           endforeach;
  </code></pre>
  
  <p>Did not set the limit on the $args because i need the shuffle in all users. Hope it will help someone out there, in the wild. :D Thanks!</p>