如何编制一个产生随机密码的函数?

2023-12-05 0 375

<%response.write makePassword(16)function makePassword(byVal maxLen)Dim strNewPassDim whatsNext, upper, lower, intCounterRandomizeFor intCounter = 1 To maxLen whatsNext = Int((1 – 0 + 1) * Rnd + 0)If whatsNext = 0 Then upper = 90 lower = 65Else upper = 57 lower = 48End If strNewPass = strNewPass & Chr(Int((upper – lower + 1) * Rnd + lower))Next makePassword = strNewPass \’ 指定字符范围.end function%>

[1]

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 编程10000问 如何编制一个产生随机密码的函数? https://www.u-9.cn/biancheng/bc10000/96028.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务