I am trying to generate a random number with a minimum and maximum value. Currently I have the following variable that generates numbers between 0-2000. I want to be able to generate a between 500 and 2000. Will need to create local variables to achieve this?
random = Math.floor(Math.random()*2000);