loi BB

ZENO · September 29, 2023
import numpy as np
import numpy.random as rd
import matplotlib.pyplot as plt
import time

binomiale=np.random.binomial(50, 0.3, 1000)
plt.hist(binomiale,bins=50,range=(1,30),density=True)
plt.show()
Output

Comments

Please sign up or log in to contribute to the discussion.