Posted By

dareng on 02/23/11


Tagged

as3


Versions (?)

random number


 / Published in: ActionScript
 

  1. function randomNumber(low:Number=0, high:Number=1):Number
  2. {
  3. return Math.floor(Math.random() * high) + low;
  4. }
  5.  

Report this snippet  

You need to login to post a comment.