\documentclass[a4paper,english]{article}

\usepackage[shuffle,xyz,pointsonright,nosolutions,noquizsolutions,twocolumns]{esami}%%%%% TEMA
\ifluatex
        \usepackage{luatextra} % also loads fixltx2e, fontspec, xunicode
        \usepackage{unicode-math}
        \setmathfont{Latin Modern Math}
        \usepackage[utf8]{luainputenc}
\else\ifxetex
        \usepackage{fixltx2e}
                \usepackage{fontspec}
                \usepackage{unicode-math}
                      \XeTeXinputencoding utf8
\else
        \usepackage{fixltx2e}
        \usepackage[T1]{fontenc}
        \usepackage[utf8]{inputenc}
        \usepackage{lmodern,textcomp}
\fi\fi

% +=============================+
% |         DEFINITIONS         |
% +=============================+

\def\examname{The name of the exam}
\def\numcompiti{10}%%% The number of the versions
\date{2014/07/22}%%% THE DATE IN THE FORMAT AAAA/M/D
\def\Data{\longdate}%%% or \shortdate: the date in the heading
%\def\cartella{d:/folder}%%% The folder where are the exercises: by default the current folder%
%\def\Acapo{\newpage}
\begin{document}
\testversioni
\pagestyle{esame}

\whiledo{\thevers<\numcompiti}{\stepvers
% +=============================+
% |       THE SEED              |
% +=============================+

\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
%%% OR SOME OTHER LIKE
%\FPeval\seme{round(\thenomefile*(\thevers)+1-trunc(\thenomefile*(\thevers)/(2^31-1):0)*(2^31-1):0)}
%\FPeval\seme{round(1+abs(\thenomefile/(\thevers)+sin(\thevers)*(\thevers)^(2)):0)}

\randomi=\seme

\permuta
% +=============================+
% |  STUFF DEFINED IN CFG FILE  |
% +=============================+

\testa%%% the heading
\istruzionii%%%  some instructions

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section*{Part One}


\begin{test}[8]
\begin{questions}
\ifluatex
\esercizi{
test14,
test1,
test4,
test9
}
\else\ifxetex
\esercizi{
test14,
test1,
test4,
test9
}
\else
\begin{esdb}{mydb} %% some exercises from 2 files
  \selectrandomlyn{3}{test2}
 \selectrandomlyn{2}{test3}
  \end{esdb}

\esercizi{
test14,
test1,
test4,
test9,
test5-fillin
}
%%% all the problems of a file
\selectallproblems[random]{test11}
\fi\fi

\end{questions}

Some other questions\\[5mm]


\begin{questions} %% a new set of questions
\esercizi{test12,
test13
}
\end{questions}
\end{test}

\section*{Part two}
\istruzioniii%%% Some other instructions

\esercizi{problem1}
\closevers
\newpage                                                                            %
                                                                %
\setcounter{page}{1} %%% dvi
}

\end{document}
