📄 random.asp
字号:
<%@ Language=VBScript %>
<%
Response.Cookies("totaltime")="300"
%>
<%
Dim num(), k,ans(),totalq
totalq=100
redim num(totalq)
redim ans(totalq)
k = 1
Randomize
For i = 1 To totalq
x = Round(Rnd * totalq)
For j = 1 To k
If num(j) = x Then
i = i - 1
Exit For
End If
Next
If j > k Then
num(k) = x
k = k + 1
End If
Next
for i=1 to totalq
ans(i)="Not Attempted"
Response.Write num(i)& ".<br>"
Next
Session("Questions")=num
Session("Answers")=ans
Session("Counter")=1
Session("examover")=0
'Response.Cookies("totaltime")= "400" 'cstr(totaltime)
%>
<form name=examform action="exam1.asp" method=post>
<input type=hidden name=qno value=1>
<input type=submit name="xxxxxxxx" value=1>
</form>
<script language="JavaScript">
// document.examform.submit()
</script>
<P> </P>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -