i'm recoding in as3 old project done as2. have line in as2:
randnum = random(quizquestions.length);
how can same as3?
note: quizquestions.length number of questions.
thanks in advance,
sergio
update:
var randnum:number = math.round(1 + (quizquestions.length - 1) * math.random());
this wors charm.
thanks lot guys!
you should use formula as3 random numbers:
randnum = min + (max - min) * math.random();