title: c++ rand() modulo floating point numbers
body: <p>In c++ I wish to get a random floating point number. From what I remember the typical random number generation is done by:</p>
  
  <pre><code>rand() % 100 
  </code></pre>
  
  <p>which will give you values between 0 and 99</p>
  
  <ol>
  <li>What I want is <code>rand() % PI / 12</code></li>
  </ol>
  
  <p>The interpretation is a random angle between 0 and PI/12</p>
  
  <p>Thanks in advance!</p>