Dim Result As Integer
Dim mydata(),i,mystr,mytempstr
mystr=""
Randomize(timer())
for i=1 to bit
if i=1 then
if rnd() >0.45 then
mytempstr= chr(65+ rnd()*27 mod 26)
Else
mytempstr= chr(97+ rnd()*27 mod 26)
End if
Else
IF rnd() >0.66 then
mytempstr= chr(48+ rnd()*10 mod 10)
ElseIF rnd() >0.33 then
mytempstr= chr(65+ rnd()*27 mod 26)
Else
mytempstr= chr(97+ rnd()*27 mod 26)
End if
End if
mystr=mystr+mytempstr
next i