Skip to content

Commit dd833b9

Browse files
authored
Fix
1 parent d036e89 commit dd833b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,8 +841,8 @@ def binomialvariate(self, n=1, p=0.5):
841841
except ValueError:
842842
# fix random() rethrn 0.0 option
843843
continue
844-
if y > n:
845-
return x
844+
if y > n:
845+
return x
846846
x += 1
847847

848848
# BTRS: Transformed rejection with squeeze method by Wolfgang Hörmann

0 commit comments

Comments
 (0)