I made this simple latex file :
\documentclass{minimal}
\usepackage{tikz}
\newcommand\randdot{%
\tikz{\pgfmathsetmacro{\r}{0.01+0.05*random()}\fill (0,0) circle (\r);}\ }
\begin{document}
\randdot\randdot\randdot\randdot\randdot\randdot
Test \leaders\hbox{\randdot\ }\hfill 3 \hfill \
\randdot\randdot\randdot\randdot\randdot\randdot
\end{document}
The new command randdot typeset a dot of random size. The command works good, BUT when I use it in a leader, the dots are no more random. The leaders command must evaluate only once the randdot, and copy it...
How can I obtain a random leader, with each dot being evaluated differently ?
Thanks !!