14th Sep 2020, 10:47 PM
Тимур Завьялов
Тимур Завьялов - avatar
2 ответов
+ 3
Тимур Завьялов try this instead function random (min,max) { document.write(Math.random() * (max-min) + min); } random (5,10)
14th Sep 2020, 11:50 PM
BroFar
BroFar - avatar
+ 2
return just returns the value to the function call ,to actually write it to browser use document.write or console.log to log it out
14th Sep 2020, 10:50 PM
Abhay
Abhay - avatar