Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75cd865

Browse files
authored
Fix an ironic typo in a code comment. (gh-109186)
1 parent e21c89f commit 75cd865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def binomialvariate(self, n=1, p=0.5):
827827
return k
828828

829829
# Acceptance-rejection test.
830-
# Note, the original paper errorneously omits the call to log(v)
830+
# Note, the original paper erroneously omits the call to log(v)
831831
# when comparing to the log of the rescaled binomial distribution.
832832
if not setup_complete:
833833
alpha = (2.83 + 5.1 / b) * spq

0 commit comments

Comments
 (0)