Select a random set of questions for a *batch* of exams

Added by Devin Casenhiser about 9 years ago

If I understand the use of \shufflegroup, \copygroup, \insertgroup -- their use would result in a random subset of questions being chosen for each instance of the exam. At least I think that's correct -- haven't tried it out.

Assuming that's correct, is there a way to select a random set of questions for an entire batch of exams. That is, I want to select a random subset of questions, but I want all the students to receive the same set of questions, just printed in different orders.

Cheers!
Devin


Replies (2)

RE: Select a random set of questions for a *batch* of exams - Added by Alexis Bienvenüe about 9 years ago

Assume you want to use 4 questions from a group ga, and 5 from another group gb, chosen at random. At the beginning of your LaTeX file, outsite examcopy, prepare the groups
ga and gb, and then use the following:

\shufflegroup{ga}
\copygroup[4]{ga}{gall}
\shufflegroup{gb}
\copygroup[5]{gb}{gall}

The group gall now contains the questions you need. Use it as usual: inside examcopy, use
\shufflegroup{gall}
\insertgroup{gall}

(1-2/2)