HOME | DD

psykopath — Mersenne Twister Class File by-nc

Published: 2007-04-15 09:36:34 +0000 UTC; Views: 3591; Favourites: 1; Downloads: 760
Redirect to original
Description Code not written by me, I only put it into a class to make it easier to use.
Original source available in comments in the code, along with descriptions of how to use it.

Cheap description: Make random numbers
Related content
Comments: 7

wonderwhy-ER [2007-04-15 12:31:55 +0000 UTC]

Hmm. This thing is sued as alternatvie for random function? or what?

👍: 0 ⏩: 1

psykopath In reply to wonderwhy-ER [2007-04-17 04:40:25 +0000 UTC]

Yes its a random number generator. Its supposed to better than the built in functions in Flash because the numbers it egenrates really are random. Or something like that. [link]

👍: 0 ⏩: 2

wonderwhy-ER In reply to psykopath [2007-04-17 09:18:01 +0000 UTC]

Hmmmmm.... AS far as i remember evry generator should have small corelations between its values... It seems that in that term that generator is not hte best one. It must not be used in internet protocols and other security intensive applications. IT is possible to predict it after some time. Tough it may be hard to determien if it is used...

👍: 0 ⏩: 0

wonderwhy-ER In reply to psykopath [2007-04-17 09:11:50 +0000 UTC]

Hmm. I thin it is better to make prototype MAth module which has MersenneTwister or something...

👍: 0 ⏩: 1

psykopath In reply to wonderwhy-ER [2007-04-17 10:06:19 +0000 UTC]

Yeh that could be done as well, feel free to do it with this code.
I feel it belongs as a class because it has more than one method (seeding and generating).

👍: 0 ⏩: 1

wonderwhy-ER In reply to psykopath [2007-04-17 10:16:51 +0000 UTC]

Flash random also has seed method. Thig is that it is hidden from us. It's just that there is private previusNumber variable in Math class. Whe you first tiem call random function it is taken as getTimer(). Tough it is jsut my guess

👍: 0 ⏩: 0

swerno092 [2007-04-15 10:44:46 +0000 UTC]

Yes! Another .fla thanks dude ^.=.^

👍: 0 ⏩: 0