[issue4869] random.expovariate(0.0)

Keith Briggs report at bugs.python.org
Wed Jan 7 18:21:34 CET 2009


Keith Briggs <kbriggs at users.sourceforge.net> added the comment:

That's all true - the only thing in favour of my suggestion is that to
allow lambda=0 is sometimes useful in simulations, meaning that it's
infinite time to the next event, i.e. it never occurs.  A FP infinity
would do this without requiring a special case.

At least the documentation should state the restrictions on lambda.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4869>
_______________________________________


More information about the Python-bugs-list mailing list