I created a picture for a random charge distribution and it currently looks like this
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections, decorations,circuits.ee.IEC, calc, decorations.markings, patterns}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\definecolor{mygray}{gray}{0.8}
\draw [fill=mygray, decoration={random steps, segment length =.5cm, amplitude=.5cm}, decorate , rounded corners=.3cm] (-.5,0) -- (-.25, 3) -- (1,2) -- (1.2,-.5) -- (-.5,0);
\draw[->] (-.5,0) -- (4,0);
\draw[->] (0,-.5) -- (0,4);
\draw[->] (0,0) -- (45:4) node[right]{$\vec r$};
\end{tikzpicture}
\end{document}

My question now is: How can I manage to get a random 3D shape? Best regards
Edit: Added the packages to provide a minimal example, sry for that.


smooth3,patch, andisosurfacefunctions). – Christian Feuersänger Jul 29 '13 at 20:25