f = function() { trace('hello'); setTimeout(f, Math.floor(Math.random()*6000)+1000); } setTimeout(f, Math.floor(Math.random()*6000)+1000);