I have come across a very strange problem. I have tried to find its solution but in vain. My problem is that I want to create a random number between 1-45 and I don\'t want tha
This is working
function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; }