Error in using rand function : <p>I tried using the rand() function with min = 4 and max = 10:</p>

<pre><code>s = rand() % 10 + 4;
</code></pre>

<p>and some of the results were above 10.How is this possible?</p>
