From d3ac74835e6499592cb22466ed6840878ef80cb6 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 19 Aug 2024 13:02:36 +0200 Subject: [PATCH] simplified --- dap/utils/randskip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dap/utils/randskip.py b/dap/utils/randskip.py index 1c4f924..3870b14 100644 --- a/dap/utils/randskip.py +++ b/dap/utils/randskip.py @@ -25,8 +25,7 @@ def randskip(skip_rate): # Return True percentage % of times # Return False (100 - percentage) % of times # """ -# percentage /= 100 -# return random() < percentage +# return 100 * random() < percentage ## thus: