randomHiLo()

randomHiLo = function (x, y) {
	if (x > y) return null;
	else return Math.floor(Math.random()*(y-x))+x;
}

Just a quick function I made because I’m sick of the long-winded way flash handles random numbers now. This function selects a random number between x and y. An example:

trace(randomHiLo(30,60));

Could output 53.