I have this following javascript code
var rnumber=Math.floor(Math.random()*50)+1;
now my doubt is why are they adding one is it to exclude 0 or to include 50 while finding the random number. Please provide me with the correct answer with an explanation.