* Print the number to the console.
* Repeat until the number selected is greater than 45
* (modify so we get a minimum of 10 printed values)
* * * * * * * * * * * * * * * * * * * * * * * * * * */
function printRand() {
}
printRand();
// Generating random numbers is available in most programming languages.
// The Javascript method: Math.random()
// Return a random integer from min to max, inclusively
function randomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Javascript
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
* Generate a random number from 1-50.