title: How to get the seed value from a random number generator in PHP
body: <p>I would like to get the seed value after the <code>rand()</code> or <code>mt_rand()</code> is used. Essentially I want to store the seed so that I can use this seed to continue generating random numbers next time php is executed.</p>
  
  <p>I need a repeatable behavior for unit testing/load testing... and different modules in my applications will use the same seed, so that the sequence of random numbers are generated are reproducible.</p>
  
  <p>Thanks for your input. I couldn't find a method to get the seed. A Random number generator class that exposes the seed would be helpful too.</p>