⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 random.asp

📁 在线考试系统
💻 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>&nbsp;</P>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -