一个生成随机密码的函数

类别:Asp 点击:0 评论:0 推荐:

tmp = "0123456789abcdefghijklmnopqrstopwxyz"
tmpPWD = RoundStr(tmp,8)

Function RoundStr(str,Num)
 s = ""
 for i = 1 to Num

                  Randomize

  strLen = Len(str)
  t = Round((RND * (strLen-1))+1)
  s = s & mid(str,t,1)
 Next
 RoundStr = s
End Function

本文地址:http://com.8s8s.com/it/it8295.htm