function _random(a:Number, b:Number):Number { return Math.round(a + (b - a) * Math.random()); } d = _random(-10, 10);