import numpy as np import matplotlib.pyplot as plt # 正規分布に従う乱数を500個生成 x = np.random.randn(500) # 可視化 plt.hist(x, bins='auto') plt.show()