7 Replies Latest reply on Jan 29, 2009 5:29 PM by kglad

    generate multiple random numbers?

    shintashi Level 1
      Hi,

      I'm trying to generate random numbers using Math.random()* n; but I want the random numbers to reset to something different after a particular event is called. Instead, I've noticed the numbers either buzz away randomly in every frame (when placed inside onEnterFrame), or it picks random numbers once, and then uses those same values over and over (when placed outside the onEnterFrame).

      How do i get actionscript to generate new random numbers after each myMC.onPress = function(), or alternatively, after a score changes (like some kind of watch feature?)