Closed Arcdeamonofire closed 8 years ago
finds a random number between 1 - 6 and then sets it to the array. It will be called each time the roll the dice button is pressed.
var random = function(){
return 1 + Math.floor(Math.random() * 6);
}
var $die1 = random();
var $die2 = random();
$dice = [$die1, $die2];
Have a function that gets gets random numbers between 1-6 for the dice values. Will need two for each.