I am trying to create a circle of elements with some randomness to it. I want to predefined the coordinates to create complicated element. I am using this:
\newcommand{\elm}[2]{
\shade [ball color=red] (#1,#2) circle (4 pt);
}
and this:
\begin{tikzpicture}
\foreach \ang in {0,90,...,270}{
\pgfmathsetmacro{\r}{200pt}
\pgfmathsetmacro{\dx}{rand*2}
\pgfmathsetmacro{\dy}{rand*2}
\elm{{\r*cos(\ang) + \dx},{\r*sin(\ang)+\dy}}
}
\end{tikzpicture}
All I get is a blank sheet of paper without any figure. How can do this correctly?
