The Tikz manual has all sorts of different options regarding math, but the following is the first version which actually worked. Is there a better way to do this?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcount\gaussF
\edef\gaussR{0}
\edef\gaussA{0}
\def\gauss{
\advance\gaussF by 1\relax
\ifodd\gaussF
\pgfmathrnd
\edef\temp{\pgfmathresult}
\pgfmathln{\temp}
\edef\temp{\pgfmathresult}
\pgfmathmultiply{-2}{\temp}
\edef\temp{\pgfmathresult}
\pgfmathsqrt{\temp}
\edef\gaussR{\pgfmathresult}%radius = $sqrt(-2*ln(rnd))$
\pgfmathrnd
\edef\temp{\pgfmathresult}
\pgfmathmultiply{360}{\temp}
\edef\gaussA{\pgfmathresult}%angle = $360*rnd$
\pgfmathcos{\gaussA}
\edef\temp{\pgfmathresult}
\pgfmathmultiply{\gaussR}{\temp}
\else
\pgfmathsin{\gaussA}
\edef\temp{\pgfmathresult}
\pgfmathmultiply{\gaussR}{\temp}
\fi
\pgfmathresult
}
\begin{document}
\noindent
\gauss\\
\gauss\\
\gauss\\
\gauss
\end{document}


calclibrary? Is this question about PGFmath? – Qrrbrbirlbel Dec 02 '13 at 23:42calclibrary for usingpgfmath.calcis for coordinate calculations (like($(0,0)+(2,2)$). – Jake Dec 03 '13 at 09:13