I want to generate random sample from geometric distribution using python.
I was using the numpy.random.geometric(p=0.3, size=100) function. But I later realized that this function generates sample from geometric distribution with pmf: p*q^(x-1), x=1,2,3....
But I want random samples from geometric distribution with pmf: p*q^(x), x=0,1,2,...
Kindly help.