title: Random number generator that produces a power-law distribution?
body: <p>I'm writing some tests for a C++ command line Linux app.  I'd like to generate a bunch of integers with a power-law/long-tail distribution.  Meaning, I get a some numbers very frequently but most of them relatively infrequently.  </p>
  
  <p>Ideally there would just be some magic equations I could use with rand() or one of the stdlib random functions.  If not, an easy to use chunk of C/C++ would be great.</p>
  
  <p>Thanks!</p>