[issue30464] gammavariate has a wrong comment

Leonardo De Marchi report at bugs.python.org
Wed May 24 17:47:13 EDT 2017


New submission from Leonardo De Marchi:

The gammavariate function in random.py has a wrong comment.

It says that when alpha is one it's equivalent to call expovariate(1).

We can see that is not true (see graphs) and it should be expovariate(1/beta). It's not a big deal but it can cause confusion.

----------
files: unnamed.png
messages: 294403
nosy: leodema
priority: normal
severity: normal
status: open
title: gammavariate has a wrong comment
Added file: http://bugs.python.org/file46895/unnamed.png

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


More information about the Python-bugs-list mailing list