| asp產(chǎn)生隨機數(shù)
					當(dāng)前位置:點晴教程→知識管理交流
					
					→『 技術(shù)文檔交流 』
					
				 
 Function getCode(iCount)  Dim arrChar Dim j,k,strCode arrChar = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" k=Len(arrChar) Randomize For i=1 to iCount j=Int(k * Rnd )+1 strCode = strCode & Mid(arrChar,j,1) Next getCode = strCode End Function response.write getCode(10) '得到一個長度為10 的隨機字符串 該文章在 2012/3/1 14:40:50 編輯過 | 關(guān)鍵字查詢 相關(guān)文章 正在查詢... |