title: Digits range in randomizer
body: <p>I wrote program to pick random number for each half second in range of 1 to 1000000, and when i run it, it's drawing a number of maximum 5 digits. for example 32654 etc. Why it's not picking a higher numbers?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  #include &lt;time.h&gt;
  #include &lt;cstdlib&gt;
  
  int main(){
  
      std::cout &lt;&lt; "Losowa liczba z przedziału 1...100 \n";
      srand(time(NULL));
      for(int i = 0; i &lt;= 10; i++){
          int liczba = rand()%1000000 + 1;
          std::cout &lt;&lt; liczba &lt;&lt; std::endl;
          Sleep(200);
          i--;
      }
  
  return 0;
  }
  </code></pre>