title: Random number between 1 to 10 using C++
body: <p>This code is supposed to generate random number between 1 to 10, but it returns 1 every time. </p>
  
  <pre><code>int random_integer;
  int lowest=1, highest=10;
  int range=(highest-lowest)+1;
  random_integer = lowest + int(range*rand()/(RAND_MAX + 1.0));
  cout &lt;&lt; random_integer &lt;&lt; endl;
  </code></pre>
  
  <p>What's wrong in the code?</p>