Forums » Using AMC (english) »

## groups of questions and shuffling

Added by Jose Briseño over 8 years ago

I have a group of questions. This group has 10 questions. I want to

include 5 of them chosen randomly in the exam from this group of

questions. Is there an option to do this?

Thanks in Advance

Monico

### Replies (1)

#### RE: groups of questions and shuffling - Added by Alexis Bienvenüe over 8 years ago

Suppose your questions are in a group named `geometry`

(before the use of `\onecopy`

):

\element{geometry}{ \begin{question}{first} ... \end{question} } [... nine other questions ...]

You can shuffle the questions inside this group with

`\shufflegroup`

, and then insert the 5 first questions of the shuffled group with `\insertgroup`

(with an optional argument), inside `\onecopy`

:\shufflegroup{geometry} \insertgroup[5]{geometry}

As an other example, you can build an exam with 5 questions from

`geometry`

and 6 questions from `algebra`

, all shuffled, with the following code:\cleargroup{all} \shufflegroup{geometry}\copygroup[5]{geometry}{all} \shufflegroup{algebra}\copygroup[6]{algebra}{all} \shufflegroup{all} \insertgroup{all}

See

*Groups of questions*section in (a recent version of) AMC manual.

(1-1/1)