c++ How to generate random number between 1 and 10^6?
<p>I realize that the maximum number <code>rand()</code> can generate is 32767. Is there anyway I can generate random numbers with value between 1 and 10^6(1 million) without external libraries?</p>