0

Random generator?

How to make a random generator in html or css or js

26th Jun 2017, 3:01 AM
rustic crow
4 Réponses
+ 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>
26th Jun 2017, 4:47 AM
sniperisdemoman
sniperisdemoman - avatar
+ 3
which language?
26th Jun 2017, 3:02 AM
jay
jay - avatar
+ 2
Error 404 Language Not Found
26th Jun 2017, 3:13 AM
Ekansh
+ 1
sorry I erroneously left a "y" variable
26th Jun 2017, 4:49 AM
sniperisdemoman
sniperisdemoman - avatar