0004 added[hypotenuseCalculator, counter, randomNumberGeneration]
This commit is contained in:
8
js/randomNumberGeneration.js
Normal file
8
js/randomNumberGeneration.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//Generates semi random number between 1 and 6.
|
||||
let a = Math.floor(Math.random() * 6) + 1;
|
||||
|
||||
document.getElementById("roll").onclick = function() {
|
||||
document.getElementById("xLabel").innerHTML = Math.floor(Math.random() * 6) + 1;
|
||||
document.getElementById("yLabel").innerHTML = Math.floor(Math.random() * 6) + 1;
|
||||
document.getElementById("zLabel").innerHTML = Math.floor(Math.random() * 6) + 1;
|
||||
}
|
||||
Reference in New Issue
Block a user