I'm looking to generate a binomial-esque distribution. I want a binomial distribution but I want it centred around zero (I know this doesn't make much sense with respect to the definition of binomial distributions but still, this is my goal.)
The only way I have found of doing this in python is:
def zeroed_binomial(n,p,size=None): return numpy.random.binomial(n,p,size) - n*p Is there a real name for this distribution? Does this code actually give me what I want (and how can I tell)? Is there a cleaner / nicer / canonical / already implemented way of doing this?

n*pis the mean of the binomial distribution. The most frequent element is the mode, and according to wikipedia it is eitherfloor((n + 1)p)orfloor((n + 1)p) − 1