function range(lowerValue,upperValue){ let total=upperValue-lowerValue+1 return Math.floor(Math.random()*total+lowerValue) } range(1,10)