Using a Pseudorandom number generator can be helpful , php comes with http://www.php.net/manual/en/function.mt-srand.php mt_srand , its a functional interface need a wrapper to provide object interface.
This can be useful for text-generator, using the same seed will produce same results ie deterministic text generator on each iteration, tests can be written to expect these values.
Using a Pseudorandom number generator can be helpful , php comes with http://www.php.net/manual/en/function.mt-srand.php mt_srand , its a functional interface need a wrapper to provide object interface.
This can be useful for text-generator, using the same seed will produce same results ie deterministic text generator on each iteration, tests can be written to expect these values.