function getRandomInt(min, max) { return Math.floor( Math.random() * (max - min + 1)) + min;}let random = getRandomInt(0, 2);//random is 0, 1 or 2 console.log(`random is ${random}`);