icomefromthenet / Faker

A Database Testing Tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pseudorandom number generator with seed.

icomefromthenet opened this issue · comments

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.