\documentclass{article}
\usepackage{tikz}
\usepackage{fp}
\usepackage{overpic}
\usepackage[francais,bloc]{automultiplechoice}

\begin{document}
\makeatletter
\pgfmathsetseed{123321}
\def\prunelist#1{%
\expandafter\edef\csname pgfmath@randomlist@#1\endcsname
        {\the\numexpr\csname pgfmath@randomlist@#1\endcsname-1\relax}
\count@\pgfmath@randomtemp 
\loop
\expandafter\let
\csname pgfmath@randomlist@#1@\the\count@\expandafter\endcsname
\csname pgfmath@randomlist@#1@\the\numexpr\count@+1\relax\endcsname
\ifnum\count@<\csname pgfmath@randomlist@#1\endcsname\relax
\advance\count@\@ne
\repeat
}
\makeatother

\newcounter{test}
\pgfmathdeclarerandomlist{mylist}{{1}{2}{3}{3}{4}{5}{6}}
\def\getValue{\pgfmathrandomitem\z{mylist}\z\prunelist{mylist}}
\exemplaire{2}{

\begin{overpic}[width=0.45\textwidth]{image.PNG}
\put (1,64) {\tiny Arduino \getValue}
\put (57,28.5) {\tiny Arduino A\getValue}
\put (57,24) {\tiny Arduino A\getValue}
\end{overpic}

\getValue


\FPeval\accxPin{trunc(random*2,0)}

%\FPeval\bobineG{\getValue}
%\setcounter{test}{\getValue}


}
\end{document}
