0004 added[hypotenuseCalculator, counter, randomNumberGeneration]

This commit is contained in:
WickedJack99
2022-08-03 09:10:38 +02:00
parent 1779fcf47b
commit 037f4d11d5
8 changed files with 145 additions and 0 deletions

View 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;
}