var minNumber = 1; // The minimum number you want.
var maxNumber = 5; // The maximum number you want.
var randomNumber = Math.floor (Math.random () * (maxNumber + 1) + minNumber); // Generates random numbers.
document.getElementById (“randomNum”). innerHTML = randomNumber; // Sets the content of the number.
False return // returns wrong to clear everything.
window.onload = Number 2 // Performs function on click.
div class = card
div id = “randomNum”
p> Statistics – [randomNumber]
(I couldn’t get my HTML to post normally so I had to make it ugly. Sorry …)