actionscript3 randomizer
as3 :: one line function
here a nice little one liner. this function returns a random number between a user supplied range.
function randomizer (low:Number, high:Number):Number { return Math.floor(low + (Math.random() * (high-low))); }
example useage, will return a number between 5 - 50.
var x:Number = randomizer(5, 50);