asp 随机字符串函数
摘要:'*************************************'asp计算随机数'**********************...
'*************************************
'asp计算随机数
'*************************************
Function randomStr(intLength)
Dim strSeed, seedLength, pos, Str, i
strSeed = "abcdefghijklmnopqrstuvwxyz1234567890"
seedLength = Len(strSeed)
Str = ""
Randomize
For i = 1 To intLength
Str = Str + Mid(strSeed, Int(seedLength * Rnd) + 1, 1)
Next
randomStr = Str
End Function
【asp 随机字符串函数】相关文章:
★ Asp 函数介绍
上一篇:
asp 读取文件和保存文件函数代码
下一篇:
asp form 表单验证函数