[AS2] Create a random number within a range

/ Published in: ActionScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. var max:Number = 10;
  2. var randInRange:Number = random(10 + 1);
  3. trace(randInRange);

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.