Posted By

taboularasa on 07/16/08


Tagged

range


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

cessnajumpin
THEPWN3R
zeman
hERB
CommissarXiii
flashinit
adrianparr


AS3 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.