欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp 下產(chǎn)生任意位數(shù)隨機(jī)密碼的代碼

 更新時(shí)間:2007年08月08日 11:35:24   作者:  
<%
'******************************
'函數(shù):MakePassword(byval maxlen)
'參數(shù):maxlen,要生成的密碼位數(shù)長(zhǎng)度
'作者:阿里西西
'日期:2007/7/12
'描述:產(chǎn)生任意位數(shù)隨機(jī)密碼
'示例:<%=MakePassword(8)%> 
'******************************
function MakePassword(byval maxlen) 
dim strnewpass 
dim whatsnext, upper, lower, intcounter 
randomize 
for intcounter = 1 to maxlen 
whatsnext = int((1 - 0 + 1) * rnd + 0) 
if whatsnext = 0 then 
'character 
upper = 90 
lower = 65 
else 
upper = 57 
lower = 48 
end if 
strnewpass = strnewpass & chr(int((upper - lower + 1) * rnd + lower)) 
next 
makepassword = strnewpass 
end function 
%>

相關(guān)文章

最新評(píng)論