Random number between x & y


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



Copy this code and paste it in your HTML
  1. Math.round(Math.random()*(y-x))+x;

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.