最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
一个生成随机密码的函数
时间:2022-06-30 09:20:45 编辑:袖梨 来源:一聚教程网
tmp = "0123456789abcdefghijklmnopqrstopwxyz"
tmpPWD = RoundStr(tmp,8)
Function RoundStr(str,Num)
s = ""
for i = 1 to Num
Randomize
strLen = Len(str)
t = Round((RND * (strLen-1))+1)
s = s & mid(str,t,1)
Next
RoundStr = s
End Function
tmpPWD = RoundStr(tmp,8)
Function RoundStr(str,Num)
s = ""
for i = 1 to Num
Randomize
strLen = Len(str)
t = Round((RND * (strLen-1))+1)
s = s & mid(str,t,1)
Next
RoundStr = s
End Function
相关文章
- Flywire飞汇国际汇款服务 - 安全快捷的跨境支付平台 06-16
- GitHub Copilot版权风险说明:代码生成与开源许可合规要点 06-16
- 异环时停技能如何 06-16
- GitHub Copilot设计场景用法:界面、逻辑与测试的配置说明 06-16
- GitHub Copilot隐私风险与权限控制说明 06-16
- 龙岛异兽起源 猎杀模式玩法详解与入门指南 06-16