首页 > 网站 > 建站经验 > 正文

ASP实例学习:随机,生成文件名的函数

2019-11-02 14:55:14
字体:
来源:转载
供稿:网友

 <html> 

  <meta http-equiv="Refresh" content="2"> 
  <!-- 
 Place this code into an ASP Page and run it! 
  --> 
  <code> 
  Random FileName Creation 

  <% 
 Function Generator(Length) 
  dim i, tempS, v 
  dim c(39) 
  tempS = "" 
  c(1) = "a": c(2) = "b": c(3) = "c": c(4) = "d": c(5) = "e": c(6) = "f": c(7) = "g" 
  c(8) = "h": c(9) = "i": c(10) = "j": c(11) = "k": c(12) = "l": c(13) = "m": c(14) = "n" 
  c(15) = "o": c(16) = "p": c(17) = "q": c(18) = "r": c(19) = "s": c(20) = "t": c(21) = "u" 
  c(22) = "v": c(23) = "w": c(24) = "x": c(25) = "y": c(26) = "z": c(27) = "1": c(28) = "2" 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表