diff --git a/benchmarks/core/utils.py b/benchmarks/core/utils.py index ab12f10..02e7673 100644 --- a/benchmarks/core/utils.py +++ b/benchmarks/core/utils.py @@ -63,7 +63,7 @@ def sample(n: int) -> Iterator[int]: """Samples without replacement using a basic Fisher-Yates shuffle.""" p = list(range(0, n)) for i in range(n - 1): - j = i + random.randint(0, n - i) + j = random.randint(i, n - 1) tmp = p[j] p[j] = p[i] p[i] = tmp