//To genereate a number between 0-1Math.random();
//To generate a number that is a whole number rounded downMath.floor(Math.random())
/*To generate a number that is a whole number rounded down between
1 and 10 */Math.floor(Math.random() * 10) + 1//the + 1 makes it so its not 0.
// Returns an integer between minandmax (the maximum is exclusive and the minimum is inclusive)
functiongetRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}