I have a problem. I have a graph, and I must paste a random number in every vertex of this graph. Vertices have coordinates.
A part of code :
\foreach \pos/\name in {{(0,0)/a}, {(1,-1)/b}, {(1.5,-2)/c},
{(1.3,-2.5)/d}, {(0.6,-2.5)/e}, {(2,-2.66)/f},
{(1.3,-3.5)/g},{(0.6,-3.5)/h},{(2,-3.33)/i},
{(1.9,-1.3)/j}}
\node[circle,fill=black!25,minimum size=15pt,inner sep=0pt] (\name) at \pos {\pgfmathsetmacro{rand}};