<html>
<meta http-equiv="刷新" content="2">
<!--
將此程式碼放入 ASP 頁面並運行它!
-->
<程式碼>
隨機檔案名稱創建
<%
函數產生器(長度)
暗淡 i、tempS、v
暗淡c(39)
溫度=“”
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) = “米”: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) = “!”
如果 isNumeric(Length) = False 那麼
Response.Write“數字資料類型未提交給此函數。”
退出功能
結束如果
對於 i = 1 到長度
隨機化
v = Int((39 * Rnd) + 1)
tempS = tempS & c(v)
下一個
發電機 = tempS
結束功能
對於 i = 1 到 20
隨機化
x = Int((20 * Rnd) + 1) + 10
Response.Write Generator(x) & "<br>" & vbnewline
下一個
%>
</code>