I need to sample a variable from a distribution that's like a binomial distribution except with a "bias", I'm not sure what it may be called: $p(X=k)$ is proportional to $k.B(n,p)(k)$ where $B(n,p)$ is the binomial distribution.
Any ideas on how this can be done?
I'm working in python so if there's any "direct" way in numpy or other packages that would be extra useful...