\documentclass[a4paper,italiano]{article}

\usepackage[shuffle,xyz,pointsonright,solutions,noquizsolutions,twocolumns]{esami}%%%%% TEMA

%%%% substitute "xyz" with your own config file

%%% some packages we use

        \usepackage{fixltx2e}
        \usepackage[T1]{fontenc}
        \usepackage[utf8]{inputenc}
        \usepackage{lmodern,textcomp}

% +=============================+
% |         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 YYYY/M/D or D/M/YYYY
\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}
\usepackage{babel}

\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}
%%% this is an example of "esdb"

\begin{esdb}{mydb} %% some exercises from 2 files
  \selectrandomlyn{3}{test2}
 \selectrandomlyn{2}{test3}
  \end{esdb}

%%%% this is an example of "esercizi"

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


\end{questions}

%%%% You can write other questions here using \begin{questions}... \end{question}

\end{test}

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

%%%% This is an example of open question problem

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

\end{document}
