demo_numpy_random_binomial2.py:
from numpy import random import matplotlib.pyplot as plt import seaborn as sns sns.distplot(random.binomial(n=10, p=0.5, size=1000), hist=True, kde=False) plt.show()
C:\Users\My Name>python demo_numpy_random_binomial2.py