function getSum(min,max){ return min+Math.round(Math.random()*(max-min)) } console.log(getSum(10,20));