I need an algorithm that pretty much will turn a unix timestamp into a suitably random number, so that if I "play back" the timestamps I get the same random numbers.
And here's what I mean by suitably:
And I would like it to be fairly fast.
So far my idea is to just seed a PRNG over and over, but I'm not sure if that's the best way to handle this.
Any thoughts and ideas will be much appreciated.
Thanks.
If it doesn't need to be statistically random, perhaps feed the timestamps to MD5 and truncate the hash. The main issue is that I don't know if this would be surjective. Other hashing algorithms might work better.