function randomInt(min, max) { return Math.floor(Math.random() * (max - min + 1) + min) } console.log(randomInt(1, 6)) // random integer between 1 and 6