Hey all, I'm trying to generate random numbers in multiples of 10 For simplicity's sake I'm only using 10, 20, 30, & 40,(right now). For some reason, my example below only pops between frame 1 and 10.
Any ideas?
/* example */
on (keyPress "1") {
var UpperLimit:Number = 4;
var LowerLimit:Number = 1;
var PlayThisFrame:Number = (Math.floor(Math.random()*(UpperLimit-LowerLimit))+LowerLimit)*10;
gotoAndPlay("valueOf(PlayThisFrame)");
}
Any ideas?
/* example */
on (keyPress "1") {
var UpperLimit:Number = 4;
var LowerLimit:Number = 1;
var PlayThisFrame:Number = (Math.floor(Math.random()*(UpperLimit-LowerLimit))+LowerLimit)*10;
gotoAndPlay("valueOf(PlayThisFrame)");
}