title: srand(time(NULL)); what does this statement actually doing
body: <p>I just want to know how this srand function is working hear by passin time(NULL) as a parameter</p>
  
  <pre><code>int Secret; // variable declaration
  srand(time(NULL)); //calling srand function
  Secret = rand() % 10 + 1; //generation random no between 0 and 10
  cout&lt;&lt;Secret;
  </code></pre>