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


You need to login to view comments.