RandRange (AS)
[ 2006-08-27 15:08:46 | Author: liuhuan ]
a function that returns a random integer between two specified numbers.
Quote
function randRange(minNum:Number, maxNum:Number):Number {
return (Math.floor(Math.random()*(maxNum-minNum+1))+minNum);
}
return (Math.floor(Math.random()*(maxNum-minNum+1))+minNum);
}
[Last Modified By liuhuan, at 2006-08-28 15:06:46]
Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=602
There is no comment on this article.
You can't post comment on this article.