最新下载
热门教程
- 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
相关文章
- 大道仙途炼丹炼器玩法详解指南 04-24
- 《The Expanse》创作者不想陷入《Star Wars》式的窠臼 04-24
- 《Pokémon Pokopia》更新扩展了移动宝可梦中心的功能 04-24
- 《Vampire Crawlers》评测 这部《吸血鬼幸存者》的卡牌构建衍生作同样极具创意 04-24
- todo清单已完成如何操作 04-24
- 噩梦山峦技能讲解攻略(掌握噩梦山峦技能的关键要点) 04-24