人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

ASP案例學習:隨機生成文件名的函數

ASP案例學習:隨機生成文件名的函數

更新時間:2022-08-29 文章作者:未知 信息來源:網絡 閱讀次數:


 <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"
c(29) = "3": c(30) = "4": c(31) = "5": c(32) = "6": c(33) = "7": c(34) = "8": c(35) = "9"
c(36) = "-": c(37) = "_": c(38) = "@": c(39) = "!"
If isNumeric(Length) = False Then
Response.Write "A numeric datatype was not submitted to this function."
Exit Function
End If
For i = 1 to Length
Randomize
v = Int((39 * Rnd) + 1)
tempS = tempS & c(v)
Next
Generator = tempS
End Function

For i = 1 to 20
Randomize
x = Int((20 * Rnd) + 1) + 10
Response.Write Generator(x) & "<br>" & vbnewline
Next
  %>
  </code>(出處:pconline)

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 新竹县| 怀集县| 梧州市| 隆尧县| 丰都县| 咸丰县| 察隅县| 兴化市| 冕宁县| 扎兰屯市| 张家港市| 永康市| 龙江县| 舒兰市| 古交市| 称多县| 柯坪县| 常德市| 三门峡市| 铜鼓县| 大名县| 五河县| 舞钢市| 哈巴河县| 中山市| 新宾| 鹿邑县| 左贡县| 威海市| 丘北县| 穆棱市| 自治县| 杭州市| 阳高县| 连云港市| 维西| 土默特右旗| 尼勒克县| 云林县| 城固县| 叙永县|