javascript random number function
let result = RandomNumber(5, 9); // result can be any value from 5 to 9
// Random number between min and max (min and max included)
function RandomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}