Posted By

adrianparr on 11/27/09


Tagged

actionscript random rand as3 range


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

tonilopez
Nikolai
davidino1978


randRange


 / Published in: ActionScript 3
 

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

Report this snippet  

You need to login to post a comment.