How to generate geometric random numbers?

Paul Rubin http
Sun Jul 23 23:53:52 EDT 2006


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>    n = log(c, 1-p) - 1

I meant    n = log(c/p, 1-p) - 1
sorry.



More information about the Python-list mailing list