數據庫裡有
code
<%
Set objConn = Server
objConn
objConn
strSQL =
Set objRS = Server
objRS
Count=objRS
Item=
redim a(Item
for each j in t
j=
next
Randomize timer
for j=
k=int(rnd*Count+
do while t(k)<>
k=int(rnd*Item+
loop
t(k)=
next
j=
Do While Not objRS
if t(j)=
a(i
a(i
i=i+
end if
j=j+
objRS
Loop
for i=
Response
Response
next
objRs
set objRs=nothing
objConn
set objConn=nothing
%>
Data
id DataColumn
// SQL SERVER的話只需要newID()就行了
From:http://tw.wingwit.com/Article/program/net/201311/14267.html