<%@ Page Language=
<%
//
ArrayList MyArray = new ArrayList()
Random random = new Random()
string str = null;
//循環的次數
int Nums =
while (Nums >
{
int i = random
// if (!MyArray
// {
if (MyArray
{
MyArray
}
// }
Nums
}
for (int j =
{
str += MyArray[j]
}
//
Response
%>
<%@ Page Language=
<%
//
ArrayList MyArray = new ArrayList()
Random random = new Random()
string str = null;
//循環的次數
int Nums =
while (Nums >
{
int i = random
// if (!MyArray
// {
if (MyArray
{
MyArray
}
// }
Nums
}
for (int j =
{
str += MyArray[j]
}
//
Response
%>
asp的
Asp代碼
<%
Randomize
FreeMember=Int((
Function makePassword(maxLen)
Dim strNewPass
Dim whatsNext
Randomize
For intCounter =
whatsNext = Int((
If whatsNext =
upper =
lower =
Else
upper =
lower =
End If
strNewPass = strNewPass & Chr(Int((upper
Next
makePassword = strNewPass
End Function
FreeMember = int((
Response
%>
From:http://tw.wingwit.com/Article/program/net/201311/12766.html