title: Ordering a result set randomly in mongo
body: <p>I've recently discovered that Mongo has no SQL equivalent to "ORDER BY RAND()" in it's command syntax (https://jira.mongodb.org/browse/SERVER-533)</p>
  
  <p>I've seen the recommendation at <a href="http://cookbook.mongodb.org/patterns/random-attribute/">http://cookbook.mongodb.org/patterns/random-attribute/</a> and frankly, adding a random attribute to a document feels like a hack. This won't work because this places an implicit limit to any given query I want to randomize.</p>
  
  <p>The other widely given suggestion is to choose a random index to offset from. Because of the order that my documents were inserted in, that will result in one of the string fields being alphabetized, which won't feel very random to a user of my site. </p>
  
  <p>I have a couple ideas on how I could solve this via code, but I feel like I'm missing a more obvious and native solution. Does anyone have a thought or idea on how to solve this more elegantly? </p>