Posted By

zeman on 04/22/09


Tagged

random


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sweetbabyyoung


Random Range


 / Published in: ActionScript 3
 

  1. private function randRange(minNum:Number, maxNum:Number):Number
  2. {
  3. return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
  4. }

Report this snippet  

You need to login to post a comment.