title: srand(time(NULL)) generating similar results
body: <p>I don't understand why srand() generates so similar random numbers <strong>between runs!</strong></p>
  
  <p>I am trying to run the following code</p>
  
  <pre><code>srand ( time(NULL) );
  int x = rand();
  cout &lt;&lt; x &lt;&lt; endl;
  </code></pre>
  
  <p>However instead of a proper random number I always end up with almost the same number, which is growing slowly as the time goes. So I get numbers like: 11669, 11685, 11701, 11714, 11731.</p>
  
  <p><strong>What am I doing wrong?</strong></p>
  
  <p>I am using Visual Studio 2010 SP1.</p>
  
  <p>OK, is srand() really that simple? I mean how would anyone call it a random function?</p>
  
  <pre><code>srand(1) =&gt; rand() = 41
  srand(2) =&gt; rand() = 45
  srand(3) =&gt; rand() = 48
  srand(4) =&gt; rand() = 51
  ....
  </code></pre>