Posted By

taboularasa on 07/16/08


Tagged

textmate actionscript random function as3 range


Versions (?)

Who likes this?

11 people have marked this snippet as a favorite

cessnajumpin
THEPWN3R
zeman
hERB
CommissarXiii
flashinit
adrianparr
kojok
tspitzr
sapphiriq
deers


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  

Comments

RSS Icon Subscribe to comments
Posted By: andy310584 on September 2, 2012

Thanks :)

You need to login to post a comment.