Lefseq,
https://javascript.ru/forum/misc/682...enii-dnya.html
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script>
document.addEventListener('DOMContentLoaded', ready);
function ready()
{
const options = {
increment: 100,
different: 300,
basic: 1000,
delay: 3000,
differentDelay: 5000,
elem: document.querySelector('.box')
};
const random = (increment, different) => increment + Math.random() * different | 0;
const loop = () => {
options.elem.innerHTML = options.basic;
options.basic += random(options.increment, options.different);
setTimeout(loop, random(options.delay, options.differentDelay))
}
loop()
}
</script>
</head>
<body>
<div class="box"></div>
</body>
</html>