Run »
from numpy import random x = random.poisson(lam=2, size=10) print(x)