📅  最后修改于: 2022-03-11 14:45:58.023000             🧑  作者: Mango
import numpy as np
import matplotlib.pyplot as plt
x = np.random.uniform(-100, 100, 1000)
plt.hist(x, bins=30, range=(-50, 50))
plt.show()