import numpy as np import matplotlib.pyplot as plt def get_normal(n): mu,sigma = 10,1 s = np.random.normal(mu, sigma, n) plt.hist(s, density=True) plt.show() get_normal(100)