A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: unrandom random numbers

  1. #1
    Member
    Join Date
    Dec 2003
    Posts
    30

    unrandom random numbers

    Hi

    I am buiding a game, and want to use the random() to generate a new and random game everytime it runs. Unfortunately it generates the same random numbers every time, so all the games are identical!!

    Help!!
    Is there some way to reset the seed? How does it generate the random numbers?

    If I can't get something really random, it's gonna sink the project!!

    Wynand

  2. #2
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    Posts
    590
    It generates real ones when exported.

    The non-random ones are just in 3DFA.

    Morgan
    Please note that my domain has changed to http://www.morganmultinational.com

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    30

    Thanx

    Wew! What a relief!
    Thanks

  4. #4
    Member MoonRise's Avatar
    Join Date
    Sep 2004
    Location
    Greenville SC
    Posts
    121

    Word of note.

    This may already be something known but just want to relay it just in case. I did a quick flash a while back with a random number to pick a different path. True, the exported creates better Random Numbers, but, if the Range of numbers are small, like 1 to 3, the numbers will not appear that Random. Use a large range to make it more random.
    MoonRise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center