var rnd =(a, b)=> Math.floor(('0.'+ (new Date().getMilliseconds()+''.slice(1)) ) * (b - a)) + a; console.log(rnd(0,100));
function rand(){ return (new Date()).getMilliseconds()/1000; }; function getRandomCount(){ var resultObject = document.getElementById('resultPlace'); resultObject.innerHTML = ""; for (var i = 0; i < 5; i++) { var a = Number (document.getElementById('a').value); var b = Number (document.getElementById('b').value); var result = a + (b - a) * rand(); resultObject.innerHTML += "<br>Сгенерированное число: " + result; } } </script>