var SI:Number; SIF(); function SIF(){ clearInterval(SI); lol.play(); trace(getTimer()+" "+"inetrval"+" "+SI); SI = setInterval(SIF, (Math.floor(Math.random()*5) +3 )*1000)); }