summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ran_toks/examples/random_tst.tex
blob: 1f64c79907cff069920bec3ec265ac77ffea05d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
%
% This demo file shows how to randomize the questions of an exam created
% by the eqexam package.
%
\documentclass{article}
\usepackage[allowrandomize,nosolutions,
    forpaper,pointsonleft,noparttotals]{eqexam}
\usepackage{ran_toks}

\useLastAsSeed
%\useThisSeed{452836675} % fi,t,f,s

\examNum{1}
\title[T\nExam]{Test \nExam}
\author{D. P. Story}
\subject[MC]{My Course}
\date{Spring \the\year}
\keywords{Test~\nExam, Section 001}

\university
{%
      THE UNIVERSITY OF AKRON\\
    Theoretical and Applied Mathematics
}
\email{dpstory@uakron.edu}

\begin{document}
\maketitle


\begin{exam}{Exam\nExam}

\begin{instructions}
Solve each problem without error.
\end{instructions}

\bRTVToks{Exam\nExam}

\begin{rtVW}
\begin{problem}[5]
First: Which is correct?
\begin{answers}{4}
\bChoices[nCols=2,random]
    \Ans1 True\eAns
    \Ans0 False\eAns
    \Ans0 Maybe\eAns
    \Ans0 Perhaps\eAns
\eChoices
\end{answers}
\end{problem}
\end{rtVW}

\begin{rtVW}
\begin{problem}[5]
Second: Which is correct?
\begin{answers}{4}
\bChoices[nCols=2,random]
    \Ans1 True\eAns
    \Ans0 False\eAns
    \Ans0 Maybe\eAns
    \Ans0 Perhaps\eAns
\eChoices
\end{answers}
\end{problem}
\end{rtVW}

\begin{rtVW}
\begin{problem}[5]
Third: Which is correct?
\begin{answers}{4}
\bChoices[nCols=2,random]
    \Ans1 True\eAns
    \Ans0 False\eAns
    \Ans0 Maybe\eAns
    \Ans0 Perhaps\eAns
\eChoices
\end{answers}
\end{problem}
\end{rtVW}

\begin{rtVW}
\begin{problem}[5]
Fourth: Which is correct?
\begin{answers}{4}
\bChoices[nCols=2,random]
    \Ans1 True\eAns
    \Ans0 False\eAns
    \Ans0 Maybe\eAns
    \Ans0 Perhaps\eAns
\eChoices
\end{answers}
\end{problem}
\end{rtVW}

\eRTVToks

% Ok, now display this questions in a random order.
\displayListRandomly{Exam\nExam}


\end{exam}

\end{document}