Posted By

forchid on 05/14/09


Tagged

random as3


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

vkord
flashinit
KDR
burnandbass


Random Range


 / Published in: ActionScript 3
 

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

Report this snippet  

You need to login to post a comment.