var rnd =(min, max)=> Math.floor(Math.random() * (max - min)) + min; // Добавить window.setTimeout(c, rnd(5000,9000)); window.setTimeout(c, rnd(7000,11000));