Here in the MWE:
\documentclass{article}
\usepackage{exsheets}
\SetupExSheets{counter-format=}
\begin{document}
\begin{question}[name=Answer the following in one sentence]
\begin{enumerate}
\item Who is the President?
\item Who is the Prime minister?
\item \includequestions[random=2]{classA}
\end{enumerate}
\end{question}
\end{document}
The contents of classA.tex are:
\begin{input}
\begin{question}
Who is the Defence Minister?
\end{question}
\begin{question}
Who is the Home Minister?
\end{question}
\begin{question}
Who is the Finance Minister?
\end{question}
\begin{question}
Who is the External Affairs Minister?
\end{question}
\end{input}
Here is how it looks when compiled:
The problem is around Item No. 3. The question text is repeated and the counter does not advance.
How do I overcome this? So, it will select questions randomly and will assign item nos. 3 and 4 to them?
If exsheets can not do this, is there another package that can do this?
exsheets
does not allow you to select random subquestions. You get exactly what is expected: nestedquestion
environments… it might be possible (with some fantasy) withxsim
but I have to experiment firstxsim
this weekend…