Return to Snippet

Revision: 38689
at January 6, 2011 06:33 by tuffstudio


Initial Code
var rand:Number = Math.random(); 
var max:Number = 10; 
var randInRange:Number = Math.round(rand * max);
trace(randInRange);

Initial URL

                                

Initial Description

                                

Initial Title
[AS3] Create a random number within a range

Initial Tags

                                

Initial Language
ActionScript 3