const min = 1; const max = 4; const intNumber = Math.floor(Math.random() * (max - min)) + min; console.log(intNumber); //> 1, 2, 3
const randomInteger = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;