The answers provided here are correct if you are looking for an integer. However, if you are not looking for an integer random number, I think the below solution would work.
If you want a random number between 50 and 100, use this:
randomNumber = 50+(Math.random()*50);