Posted By

sherakama on 11/05/08


Tagged

number textmate random flash hi lo


Versions (?)

Flash Random number function hi low


 / Published in: Other
 

  1. //////////////////////////////////////////////////////
  2. //function that helps pick random numbers in a particular range
  3. private function randomNumber(lo:Number, hi:Number ):Number {
  4. return Math.round((Math.random() * (hi-lo)) + lo);
  5. }

Report this snippet  

You need to login to post a comment.