If I want to shuffle the question to prepare four different questions papers having same questions but with the different question numbers, what should I do?

enter image description here

        %usage \choice{ }{ }{ }{ }
                (a)~#1 & (b)~#2 & (c)~#3 & (d)~#4


                (a)~#1 & (b)~#2
                (c)~#3 & (d)~#4

              (a)~#1 \par (b)~#2 \par (c)~#3 \par (d)~#4



    \question If $a = 3 + i$ and $z = 2 - 3i$ then the points on the Argand diagram
    representing az, 3az and - az are
    \choice{Vertices of a right angled triangle}{ Vertices of an equilateral 
    triangle}{Vertices of an isosceles triangle}{Collinear}
    \question If z represents a complex number then $\arg (z) + \arg\left(\bar z\right)$ is 
    \question If the amplitude of a complex number is $\dfrac{\pi}{2}$ then the number is
    \choice{ purely imaginary}{purely real}{0}{neither real nor imaginary}
    \question The value of $i + i^{22} + i^{23} + i^{24} + i^{25}$ is
    \question The volume generated by 
    rotating the triangle with vertices at
    (0, 0), (3, 0) and (3, 3) about x-axis is


That is I need to mark the question paper given above as Code A. And I need to print another question paper which marked as Code B and in this question paper the first question Code A should be in question number 5 (say) and similarly others also should have different positions...

  • May be you should try something else like exsheets.
    – user11232
    Dec 7, 2014 at 10:36
  • az, 3az and - az should be $az$, $3az$ and $- az$. There are other places with the same formatting problem. Dec 20, 2014 at 23:56
  • You can also have a look at the esami package which does what you want.
    – grames
    Dec 21, 2014 at 0:06
  • This python script seems to shuffle the questions: github.com/gcalmettes/examRandomizer But this is an external script and there seems to be so bugs.
    – maggick
    Mar 10, 2020 at 10:40

1 Answer 1


You go for exam design. Here I am sharing a work. You can open this in sharelatex. Visit: https://www.sharelatex.com/project/52e3f06d3cf27e7a050000ee

  • ya.. its a good work.. But i could find the error as " Undefined control sequence" at the end.. what should i do?@Dr Amit
    – David
    Dec 22, 2014 at 16:41
  • That error is due to keyword \mathbb. So, we can use \usepackage{amsfonts} Dec 22, 2014 at 19:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .