title: C++ generating random numbers-1
body: <pre><code>int main() 
  { 
    srand((unsigned)time(0)); 
    int random_integer; 
    int lowest=0, highest=10; 
    int range=(highest-lowest)+1; 
    for(int index=0; index&lt;20; index++){ 
      random_integer = (rand() % range) + lowest/(RAND_MAX + 1.0);
      cout &lt;&lt; random_integer &lt;&lt; endl; 
    } 
  } 
  </code></pre>
  
  <p>I am getting the output from 0 to 10, 11 numbers, but I don't want to get  number 10, just numbers 0 to 9, that means 10 random numbers, what should I do?</p>