Posted By

petrafull on 10/24/09


Tagged

actionscript random


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

pauloc
hsousa
tspitzr


AS random Number


 / Published in: ActionScript
 

Get a random Number in AS3

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

Report this snippet  

You need to login to post a comment.