Gaussian random number
Mar 4, 2021
I love gaussian. Gaussian makes me happy. Here is a simple code to generate Gaussian random numbers and plot the beautiful bell curve.
From the curve, you can somehow observe Chebyshev's inequality.
import numpy as npimport matplotlib.pyplot as plts = np.random.normal(0, 6, 10000)plt.hist(s, bins = 100)plt.savefig("gaussian_0_6.png")plt.show()