Return to Snippet

Revision: 38687
at January 6, 2011 06:28 by tuffstudio


Initial Code
trace( randRange( 1, 10 ));


function randRange( minNum:Number, maxNum:Number ) : Number 
{
	return (Math.floor(Math.random() * (maxNum - minNum + 1)) + minNum);
}

Initial URL

                                

Initial Description

                                

Initial Title
Custom Random number within range

Initial Tags

                                

Initial Language
ActionScript 3