genarating numbers (1-20) in random order (not repeating the same number twice.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EzeeGoN
    New Member
    • Mar 2008
    • 2

    genarating numbers (1-20) in random order (not repeating the same number twice.

    Using Flash8 Actionscript 2.0
    i am looking for a method to generate sequential numbers in a random order (not using the same number twice) can anyone help please?
    Last edited by EzeeGoN; Mar 19 '08, 10:38 PM. Reason: added application
  • kestrel
    Recognized Expert Top Contributor
    • Jul 2006
    • 1071

    #2
    You'd want to use Math.random in actionscript. You know anything about that?

    Comment

    • EzeeGoN
      New Member
      • Mar 2008
      • 2

      #3
      Originally posted by kestrel
      You'd want to use Math.random in actionscript. You know anything about that?
      yeah i got the random part
      now i need the if number used already ;part
      perhaps with array? i nned some kind of way to chk if the number has already been used.

      Comment

      Working...