Math.random() generates a random number between 0 and 0.999...
Math.random() * 10 generates a random number between 0 and 9.999...
Math.floor(Math.random() * 10) generates a random whole number between 0 and 9
To generate a random number in a different range, multiply Math.random() by a different number.