simplified
This commit is contained in:
@ -25,8 +25,7 @@ def randskip(skip_rate):
|
|||||||
# Return True percentage % of times
|
# Return True percentage % of times
|
||||||
# Return False (100 - percentage) % of times
|
# Return False (100 - percentage) % of times
|
||||||
# """
|
# """
|
||||||
# percentage /= 100
|
# return 100 * random() < percentage
|
||||||
# return random() < percentage
|
|
||||||
|
|
||||||
|
|
||||||
## thus:
|
## thus:
|
||||||
|
Reference in New Issue
Block a user