28,391
社区成员
发帖
与我相关
我的任务
分享
strOld = "images/pic/1.jpg |images/pic/2.jpg |images/pic/3.jpg |images/pic/4.jpg |images/pic/5.jpg |images/pic/6.jpg |images/pic/7.jpg |images/pic/8.jpg |images/pic/9.jpg |images/pic/10.jpg |images/pic/11.jpg |images/pic/12.jpg"
arrChar = Split(strOld, "|")
strNew = ""
Randomize
For I = 1 To 12
temp = Trim(arrChar(Int((12 * Rnd))))
If strNew = "" Then
strNew = temp
Else
If InStr(strNew, temp) > 0 Then
I = I - 1
Else
strNew = strNew & "|" & temp
End If
End If
Next
response.write strNew