手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 随机字符串函数
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 非法字符过滤函数

Asp 函数介绍

asp 日期格式化函数

改进 ASP 的字符串处理性能

ASP:随机访问Recordset的一条记录

一个asp快速字符串连接类

asp 字符串连接数据库方法

精品推荐
分类导航