Numbers Task 5
by fredericklim
HTML
<!DOCTYPE html>
<html>
<body>
<p id="output"></p>
<script>
"use strict";
function randomNum(min, max) {
return Math.random() * (max - min) + min;
}
document.querySelector("#output").innerHTML = randomNum(1, 5);
</script>
</body>
</html>