Google interview question

1. Write a code to generate random normal distribution and plot it.

Interview Answer

Anonymous

Aug 21, 2022

import numpy as np import matplotlib.pyplot as plt sample = np.random.normal(loc=0,scale=1,size=1000) plt.hist(sample,50) plt.show()