Shuffling two versions of question groups.

Added by Gadir Rustamli 3 days ago

I have the following use case.

I have two variants of English reading test.

Both variants have a reading text and questions related to that text.

I want to generate 200 test sheets with both variants shuffled.

Individual questions for each reading test variants should also be shuffled.

How can I achieve this?


Replies (1)

RE: Shuffling two versions of question groups. - Added by Alexis Bienvenüe 2 days ago

Something like that?


\setdefaultgroupmode{withoutreplacement}

\element{qv1}{
 Question 1 for text variant 1.
}
\element{qv1}{
 Question 2 for text variant 1.
}
...

\element{variants}{

  Text variant 1.

  \insertgroup{qv1}

}

\element{qv2}{
 Question 1 for text variant 2.
}
\element{qv2}{
 Question 2 for text variant 2.
}
...

\element{variants}{

  Text variant 2.

  \insertgroup(qv2}

}

% With cyclic, the two variants alternate on copies
\setgroupmode{variants}{cyclic}

\onecopy{10}{

  copy header.

  \insertgroup[1]{variants}

}

(1-1/1)