手机
当前位置:查字典教程网 >编程开发 >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:随机访问Recordset的一条记录

asp 随机读取N条记录sql语句

把字符串转换成数据库SQL语句格式

Asp 函数介绍

asp 中常用的文件处理函数

asp:生成静态页面函数

ASP常用函数:LastDay()

asp 字符串连接数据库方法

精品推荐
分类导航