I recently learned about a neat technique, invented by John von Neumann, for generating random samples from an exponential distribution (probability density $e^{-x}$). The algorithm can be generalized to sample from a normal distribution. One notable feature of von Neumann's approach, in addition to its simple brilliance,