Debian Codegraph @

texmf-dist/doc/latex/ran_toks/examples/mc-dbu.tex

raw
1 \documentclass{article}
2 \usepackage[allowrandomize,nosolutions,
3 forpaper,pointsonleft,noparttotals]{eqexam}
4 \usepackage[usedbapp]{ran_toks}
5
6 %\rtdebugtrue
7
8 %\useLastAsSeed
9 % To reproduce the same pseudo-random sequence, you need to supply a seed
10 %\useThisSeed{1125676795}
11
12 \examNum{1}
13 \numVersions{4}
14 \forVersion{d}
15 \vA{\useThisSeed{54356}}
16 \vB{\useThisSeed{577867}}
17 \vC{\useThisSeed{6746788}}
18 \vD{\useThisSeed{856785}}
19
20 \uniqueXDBChoicesOn
21 \InputUsedIDs
22 \viewIDstrue % to view the IDs of problems used
23
24 \title[T\nExam]{Test \nExam}
25 \author{D. P. Story}
26 \subject[MC]{My Course}
27 \date{Spring \the\year}
28 \keywords{Test~\nExam, Section 001}
29 \altTitle{Section~%
30 \if\selVersion A01\else
31 \if\selVersion B02\else
32 \if\selVersion C03\else
33 04\fi\fi\fi\space(Version~\selVersion)}
34
35 %\makeInfoAWarning
36
37 \university
38 {%
39 THE UNIVERSITY OF AKRON\\
40 Theoretical and Applied Mathematics
41 }
42 \email{[email protected]}
43
44 % Input the DB files used in the demo file
45 \useTheseDBs{db1,db2,db3,db4}
46
47 \begin{document}
48
49 \maketitle
50
51 \begin{exam}{Part1}
52
53 \begin{instructions}
54 Solve each without error. Passing is 100\%.
55
56 \medskip\noindent
57 This part demonstrates how to not only randomly pull problems
58 (two from each of the DB files), but to randomize the order they
59 are listed in the exam.
60 \end{instructions}
61
62 \ranToksOff % turn off randomization of the order
63
64 \ranToks{myExam}
65 {%
66 {\useRanTok[DB1]{1}}
67 {\useRanTok[DB2]{1}}
68 {\useRanTok[DB3]{1}}
69 {\useRanTok[DB4]{1}}
70 }
71 \displayListRandomly{myExam}
72
73 \end{exam}
74
75 \end{document}