I have the following ASP functions that builds a string based on randomly generated integer values (and converts them to their corresponding ASCII values).....The functions are working properly, but I need the string to only allow ASCII values in the range of 48 to 122. Currently the range has no lower limit, only an upper limit.
How can I generate random numbers in the range of 48 to 122 ? I think it might be possible using modular division.
for i=0 to 10
randomTemp = randomNumber(122)
random = random & Chr(randomTemp)
generate = random
randomNumber = int(rnd * intHighestNumber) + 1