/ Published in: ActionScript 3
Expand |
Embed | Plain Text
private function randRange($min:Number, $max:Number):Number { return (Math.floor(Math.random() * ($max - $min + 1)) + $min); }
You need to login to post a comment.
adrianparr on 11/27/09
actionscript random rand as3 range
3 people have marked this snippet as a favorite
private function randRange($min:Number, $max:Number):Number { return (Math.floor(Math.random() * ($max - $min + 1)) + $min); }
You need to login to post a comment.