Gauss 3d.py
From Werner KRAUTH
(Difference between revisions)
Revision as of 21:19, 22 September 2015
import random, math nsamples = 100 for sample in xrange(nsamples): x, y, z = (random.gauss(0.0, 1.0), random.gauss(0.0, 1.0), random.gauss(0.0, 1.0)) print x, y, z