ID:261479
 
Okay, I want to have a random number generator that will not go below a certain number, and not above another certain number. This is to calculate HP, etc. I want to do it basically like this:

hp = random number between, say 40 and 60.

Any code/suggestions?
hp = rand(40,60)
In response to Nadrew
How about a random number generator that can do decimal points to the tenth?
In response to Guardian Angel
hp = rand(400,600)/10
Most of your questions are probably covered in the FAQ, take a look through there and if you don't find what you want (or need help) then post about it.

Also, I recommend posting in Newbie Central for basic how-to question, since you're more likely to get the help you want there.