f = function() { trace('hello'); clearInterval(id); id = setInteval(this, 'f', Math.floor(Math.rabdom()*6000)+1000); } id = setInteval(this, 'f', Math.floor(Math.rabdom()*6000)+1000);