Skip to content

Commit 7bc3695

Browse files
committed
Fix replacement in stable_random_distribution
1 parent 34adfa4 commit 7bc3695

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

micall/tests/test_stable_random_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def test_fill_domain_speed():
154154
if stable_steps < uniform_steps:
155155
wins += 1
156156

157-
assert wins / trials > 0.80
157+
assert wins / trials > 0.90

micall/utils/stable_random_distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def stable_random_distribution(high: int,
2626
choice = rng.randint(0, maximum)
2727
index = population[choice]
2828
yield index
29-
population[index] = rng.randint(0, maximum)
29+
population[choice] = rng.randint(0, maximum)

0 commit comments

Comments
 (0)