以下代码timeout,其中iNum=2,l_count=2
刚看asp,不太懂,感谢大家了
<%
dim bj(1000)
max=0
Randomize
j=Int((l_count*rnd)+1) '隨機選出iNum數量的題目
'Response.Write(j)
'Response.End()
if iNum <> 0 then 'iNum=2
for i=1 to iNum
bj(i)=j
j=Int((l_count*rnd(i))+1)
max=max+1
for e=1 to max
while bj(e)=j
j=Int((l_count*rnd)+1) '題目編號
e=1
wend
next
next
for i=1 to inum
if iNum=l_count then
j=i
else
j=bj(i)
end if
'Randomize
'j=Int((l_count-i+1)*rnd(i)+1)
%>
...全文
1577打赏收藏
此段代码timeout,是否存在死循环
以下代码timeout,其中iNum=2,l_count=2 刚看asp,不太懂,感谢大家了 <% dim bj(1000) max=0 Randomize j=Int((l_count*rnd)+1) '隨機選出iNum數量的題目 'Response.Write(j) 'Response.End() if iNum 0 then 'iNum=2 for i=1 to iNum bj(i)=j j=Int((l_count*rnd(i))+1) max=max+1 for e=1 to m