0
Random generator?
How to make a random generator in html or css or js
4 Antworten
+ 1
//FREE SCREENSAVER EDITION
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script>
var x = 0;
var y = 0;
function doRand() {
document.getElementById("randVal").innerHTML += Math.floor(Math.random() * 100);
if(x == 0){
window.scrollBy(0, 12);
}
window.setTimeout(doRand, 1);
}
</script>
</head>
<body onload="doRand()" bgcolor="black" style="color: lime;">
<p id="randVal" style="word-wrap: break-word;"></p>
</body>
</html>
+ 3
which language?
+ 2
Error 404 Language Not Found
+ 1
sorry I erroneously left a "y" variable