This is similar to a previous question, but I didn't really understand the answer given. One possible use of what I'm asking is in the following code for a Matching style of question, where lines of code would want to be randomly interpreted for typesetting
\documentclass[8pt,letterpaper]{book}
\usepackage[allowrandomize,nopoints,proofing,answerkey]{eqexam}
\usepackage{textcomp}
\usepackage{graphicx}
\begin{document}
\begin{exam}{}
\begin{problem*}[\auto]
Match each of names on the right, with the corresponding symbol on the left.
\begin{multicols}{2}
\begin{parts}
\item\PTs*{2}\fillin{.5in}{\ref{LSNO}} \includegraphics[height=.5cm]{questionBank_img/LSNO}
\item\PTs*{2}\fillin{.5in}{\ref{LSNC}} \includegraphics[height=.5cm]{questionBank_img/LSNC}
\item\PTs*{2}\fillin{.5in}{\ref{LSNOHC}} \includegraphics[height=.5cm]{questionBank_img/LSNOHC}
\item\PTs*{2}\fillin{.5in}{\ref{LSNCHO}} \includegraphics[height=.5cm]{questionBank_img/LSNCHO}
\item\PTs*{2}\fillin{.5in}{\ref{FoSNO}} \includegraphics[height=.5cm]{questionBank_img/FoSNO}
\item\PTs*{2}\fillin{.5in}{\ref{FoSNC}} \includegraphics[height=.5cm]{questionBank_img/FoSNC}
\item\PTs*{2}\fillin{.5in}{\ref{PSNO}} \includegraphics[height=.5cm]{questionBank_img/PSNO}
\item\PTs*{2}\fillin{.5in}{\ref{PSNC}} \includegraphics[height=.5cm]{questionBank_img/PSNC}
\item\PTs*{2}\fillin{.5in}{\ref{LLSNO}} \includegraphics[height=.5cm]{questionBank_img/LLSNO}
\item\PTs*{2}\fillin{.5in}{\ref{LLSNC}} \includegraphics[height=.5cm]{questionBank_img/LLSNC}
\item\PTs*{2}\fillin{.5in}{\ref{TSNO}} \includegraphics[height=.5cm]{questionBank_img/TSNO}
\item\PTs*{2}\fillin{.5in}{\ref{TSNC}} \includegraphics[height=.5cm]{questionBank_img/TSNC}
\item\PTs*{2}\fillin{.5in}{\ref{FlSNO}} \includegraphics[height=.5cm]{questionBank_img/FlSNO}
\item\PTs*{2}\fillin{.5in}{\ref{FlSNC}} \includegraphics[height=.5cm]{questionBank_img/FlSNC}
\columnbreak
\renewcommand{\thepartno}{\Alph{partno}}
\partsformat{\Alph{partno}.}
% The above redefinitions are reset when we leave the group, when \end{parts}
% is completed. If the original definitions are needed to be reset before then
% execute the following commands: \defaultthepartno, \defaultpartsformat
% \foritem{a} resets the partno counter back to 0, and displays (a), which
% has been redefined to A.
%the following lines of code should be shuffled somehow????
\foritem{a}\label{LSNO} Limit switch NC
\item\label{LSNC} Limit switch NC
\item\label{LSNOHC} Limit switch NO, held closed
\item\label{LSNCHO} Limit switch NC, held open
\item\label{FoSNO} Foot switch, NO
\item\label{FoSNC} Foot switch, NC
\item\label{PSNO} Pressure/Vacuum switch, NO
\item\label{PSNC} Pressure/Vacuum switch, NC
\item\label{LLSNO} Liquid level switch, NO
\item\label{LLSNC} Liquid level switch, NC
\item\label{TSNO} Temperature activated switch, NO
\item\label{TSNC} Temperature activated switch, NC
\item\label{FlSNO} Flow switch, NO
\item\label{FlSNC} Flow switch, NC
\end{parts}
\end{multicols}
\end{problem*}
\end{exam}
\end{document}
which results in the following:


