Skip to content

Instantly share code, notes, and snippets.

import random
import matplotlib.pyplot as plt
import numpy as np
import functools
import time
def trunc_gauss(mu, sigma, bottom, top):
a = random.gauss(mu,sigma)
while (bottom <= a <= top) == False: