title: use of random() and randomize() in C++
body: <p>Please explain me how the code i am providing gives the output as :</p>
  
  <p>1 2 3 4 5 6 7 8 9 10 11</p>
  
  <pre><code>#include&lt;stdlib.h&gt;
  #include&lt;iostream.h&gt;
  
  int main()
  {
     randomize();
     int Num, Rndnum; 
     cin &gt;&gt; Num;
  
     Rndnum = random(Num) + 7;
     for (int N =1; N&lt;=Rndnum; N++)
           cout &lt;&lt; N &lt;&lt;"";
  }
  </code></pre>
  
  <p>Please explain me this code snippet</p>