ASP Type conversion - from integer to ASCII
Posted on 2006-03-30
I am trying to generate a random string in ASP (not ASP.net). This is a function that I tried to convert from C#, but I am having trouble going from an integer value, and converting it to it's relative ASCII value.....int 122 type cast to a 'z' and then concatinating each random character to a string. These two functions right now give me a random number, but I cannon get the string that I want.
for i=0 to 10
randomTemp = randomNumber(122)
random = "" & randomTemp
generate = random
randomNumber = int(rnd * intHighestNumber) + 1