Monthly Archives: September 2013

Repeatable Pseudo Random Number Generator (PHP)

I wrote a simple class to get repeatable random numbers out of an input seed.  I’ll post it here in case someone else would find such a thing useful.  It is based on SHA1 rounds. After a number of any kind is fetched, another round of SHA1 is applied.

Download it here: RepeatablePseudoRNG

The class has 3 different methods for retrieving random numbers.

Continue reading