asp 生成任意英文+数字位数长度的随机码函数

(编辑:jimmy 日期: 2024/9/22 浏览:2)

<%
'******************************
'函数:Generator(Length)
'参数:Length,任意长度的数值,随机码位数
'作者:阿里西西
'日期:2007/7/15
'描述:生成任意英文+数字位数长度的随机码函数
'示例:Generator(80)
'******************************
Function Generator(Length)
 Dim i, tempS
 tempS = "abcdefghijklmnopqrstuvwxyz1234567890" 
 Generator = ""
 If isNumeric(Length) = False Then 
  Exit Function 
 End If 
 For i = 1 to Length 
  Randomize 
  Generator = Generator & Mid(tempS,Int((Len(tempS) * Rnd) + 1),1)
 Next 
End Function 
%>
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。