Posted By

melvitax on 03/03/08


Tagged

random


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

rd3k
Wiederkehr


Random number between x & y


 / Published in: ActionScript
 

URL: http://www.actionscript.org/resources/articles/90/1/Maths-Functions-including-Random/Page1.html

  1. Math.round(Math.random()*(y-x))+x;

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: rd3k on March 5, 2008

Fantastic - thank you very much for this :)

You need to login to post a comment.