Posted By

shalomfriss on 11/03/11


Tagged

random range


Versions (?)

Random Range


 / Published in: ActionScript 3
 

  1. function randomRange(max:Number, min:Number = 0):Number
  2. {
  3. return Math.random() * (max - min) + min;
  4. }

Report this snippet  

You need to login to post a comment.