Hi,
I have the following code for producing an unique string of 40 characters.
The function is used in an .asp page.
However quite often when the asp page is called the funcion generates
exactly the same string. What can I do more to have the rnd() function get
realy random figures?
function generateGuid
res=""
for nn=1 to 40
res = res & pwletter()
next
generateGuid=res
end function
function pwletter()
do
Randomize()
ss=cint(48+Rnd(Cdbl(Now()))*74)
loop while (ss>=58 and ss<=64) or (ss>=91 and
ss<=96)
pwletter=chr(ss)
end function
Albert Jan