import numpy as np
import matplotlib.pyplot as plt

arr = np.random.random(size=1000)
print("Uniform distribution")
print("Mean: ", np.mean(arr), "Std. dev.: ", np.std(arr))
plt.hist(arr, 50)
plt.title('Uniform distribution')

arr = np.random.normal(size=1000)
print("Normal distribution")
print("Mean: ", np.mean(arr), "Std. dev.: ", np.std(arr))
plt.figure()
plt.hist(arr, 50)
plt.title('Normal distribution')
plt.show()

import numpy as np
import matplotlib.pyplot as plt

arr = np.random.random(size=1000)
print("Uniform distribution")
print("Mean: ", np.mean(arr), "Std. dev.: ", np.std(arr))
plt.hist(arr, 50)
plt.title('Uniform distribution')

arr = np.random.normal(size=1000)
print("Normal distribution")
print("Mean: ", np.mean(arr), "Std. dev.: ", np.std(arr))
plt.figure()
plt.hist(arr, 50)
plt.title('Normal distribution')
plt.show()
