lundi 3 avril 2017

Display a random number 25 times with a 320ms delay Js

I have been trying to find a answer for this but I couldn't really get it to work. I need JavaScript code to display a random number 25 times with a 320ms delay for each number. (Ignore the other things except for //start roll)

    function roll() {

var win = Math.floor(Math.random() * 25) + 0
//change the button when rolling
rollButton.disabled = true;
rollButton.innerHTML = "Rolling...";
rollButton.style.backgroundColor = "grey";
rollButton.style.color = "black"
setTimeout(unDisable, 8000)
//start roll
(insert code here)


}

Thanks if you can help




Aucun commentaire:

Enregistrer un commentaire