@@ -0,0 +1,460 @@
+%0A# This should plot a histogram looking like a gaussian%0A# ... It does.%0A%0A## CONFIGURATION (play with different values)%0A%0Asamples = int(1e6)%0A%0Aminimum = 0.%0Amaximum = 15.%0Acenter = 7.%0Astddev = 5.%0A%0A%0A## VARIABLES FROM RANDOM TRUNCATED NORMAL DISTRIBUTION%0A%0Afrom lib.rtnorm import rtnorm%0A%0Avariables = rtnorm(minimum, maximum, mu=center, sigma=stddev, size=samples)%0A%0A%0A## PLOT THEIR HISTOGRAM%0A%0Aimport matplotlib.pyplot as plot%0A%0Aplot.hist(variables, bins=400)%0Aplot.show()%0A%0A

Add a little test for rtnorm, to make sure this is not the problem. It is not, apparently.