title: PHP: are rand() pseudo generated numbers always the same for a given seed supplied?
body: <p>I'm generating a sequence of pseudo random numbers with this code:</p>
  
  <pre><code>$seed = 1;
  srand( $seed );
  for($i=0; $i&lt;10; $i++)
  {
      echo rand(0,100) . "\n";
  }
  exit(0);
  </code></pre>
  
  <p>The following code outputs always (on my machine)</p>
  
  <pre><code>84
  39
  79
  [....]
  77
  28
  55
  </code></pre>
  
  <p>Can I rely on the fact that the output of the above code will be always the same?</p>
  
  <p>If not, what could make it change?</p>
  
  <p>For example may different versions of PHP give different results?</p>
  
  <p>Or PHP running on different operative systems?</p>