HomeAbout

SeededRandomizer

From the site:

The standard way to generate a random number in Adobe Flash is to use the Math.random() method. I’ve found Flash’s random number generator to be perfectly sufficient for all applications I’ve used it in up to this point. Unfortunately, the Math.random method does not allow you to “seed” the random numbers it generates; this is problematic if you want to generate the same random numbers repeatedly.

http://www.dncompute.com/blog/2007/03/19/seed-based-pseudorandom-number-generator-in-actionscript.html

No Comments »

RSS feed for comments on this post. | TrackBack URI
You can also bookmark this on del.icio.us or check the cosmos

Leave a comment





XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .