Think of something that you wish Authorware could do but it doesn't?
Let the our good friends at Macromedia know via the wishlist.
Please let us know if you find
any of the materials on this site inappropriate or offensive. Please include
the url and why the material should be reviewed.
Comments and questions about the site are also welcome. Please no Authorware
questions, use the AWARE
list.
|
Back
1051 - Is there a way to set the seed number for the random number generator?
by - Joseph Ganci
Is there a way to set the seed number for the random number generator?
You can multiply the random number with another number, such as the value of
the system variable called systemseconds, after which you will need to bring
the result back into the range that is required. I think the random number
in generator is random enough already, but if you want to be a little more
sure, try something like:
num := Round(MOD(Random(1, 100, 1) * SystemSeconds, 100))
That will give you a number between 1 and 100. Whether it's more random than
the regular Random function is a good exercise to try! ;-)
There are 0 reviews
Add your review
Back
|