最新下载
热门教程
- 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
相关文章
- ANOLISA:AI Agent 工具实践指南 10-05
- 前端判断页面是在PC端还是移动端打开四种做法实用指南 10-05
- creativity-skills:实践指南 10-04
- oh-my-fable:AI Agent 工具实践指南 10-04
- awesome-anthropic:实践指南 10-04
- lcu:AI Agent 工具实践指南 10-04