how to set random dice image with js code example
Example: how to set random dice image with js
function mathRandomDice() {
document.getElementById("dice").innerHTML = Math.floor(Math.random() * 6) + 1;
}
var x = mathRandomDice;
if (x = 1) {
d.innerHTML = '<img src=https://image.ibb.co/cQKOhc/dice1.png>';
}