cjkenworthy
Programmer
I am generating random numbers:
dim upper_limit
upper_limit = 150
Randomize
dim varRandomNumber
varRandomNumber = Int(Rnd * 14) + 1
i.e. a random integer between 1 and 14 - is there a better way of doing this BUT to limit the random number to a range of 1 up to: an upper limit of the variable "upper_limit"
Chris
dim upper_limit
upper_limit = 150
Randomize
dim varRandomNumber
varRandomNumber = Int(Rnd * 14) + 1
i.e. a random integer between 1 and 14 - is there a better way of doing this BUT to limit the random number to a range of 1 up to: an upper limit of the variable "upper_limit"
Chris