title: C++ random number generation
body: <p>For example, the following expression:</p>
  
  <p><code>r = (rand() % 10)+1;</code></p>
  
  <p>Generates a random number from <code>1-10</code>.</p>
  
  <p>How can we make it generate random numbers from <code>0-10</code>?</p>
  
  <p>Thanks.</p>