asp 随机字符串函数
asp 随机字符串函数
发布时间:2016-12-29 来源:查字典编辑
摘要:'*************************************'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教程学习
编程开发子分类