title: Random function in C
body: <p>I need a random function for number betwen 11 and 99. I wrote this:</p>
  
  <pre><code>int random (void){
      int i2;
      i2=11+(rand()%99);      
      return i2;
  }
  </code></pre>
  
  <p>but the numbers go over 99. Why?</p>