AS3 Random Range


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. private function randRange(minNum:Number, maxNum:Number):Number
  2. {
  3. return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.