Return to Snippet

Revision: 835
at August 13, 2006 06:20 by ypmits


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

Revision: 834
at August 13, 2006 06:19 by ypmits


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

Initial URL

                                

Initial Description
This will return a random number between two given numbers.

Initial Title
getRandomNumber

Initial Tags
number, textmate, actionscript

Initial Language
ActionScript