... randomImageIndex, and use it to generate a random number. We’ll use the same method that we used to generate a random die throw earlier, but without adding 1 to the result because we need a random number from ... need a random number from 0 to 6:var randomImageIndex = Math.round( Math.random( ) * 6 );Then we’ll use document.write() to write the randomly selected image into the page. Here’s the complete ... convert it to a number, and if you add an empty string, '', to a number, you convert it to a string, something you normally do with toString().On the fourth line, we set the date to the...