Run »
from numpy import random x = random.binomial(n=10, p=0.5, size=10) print(x)