I am looking for a random number generator in actionscript 3.0 that i can seed. The Math.random() does not have this functionality.
Thanks.
I am looking for a random number generator in actionscript 3.0 that i can seed. The Math.random() does not have this functionality.
Thanks.
Here you go http://gskinner.com/blog/archives/2008/01/source_code_see.html
I mostly use this seeded random function, which is very fast.
sources:
http://blog.stroep.nl/2012/07/random-seed-actionscript/
http://en.wikipedia.org/wiki/Linear_congruential_generator