summaryrefslogtreecommitdiff
path: root/src/support/learning.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/learning.h')
-rw-r--r--src/support/learning.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/support/learning.h b/src/support/learning.h
index 2c251d87b..749549c1c 100644
--- a/src/support/learning.h
+++ b/src/support/learning.h
@@ -59,8 +59,7 @@ class GeneticLearner {
std::mt19937 noise;
size_t randomIndex() {
- // simple random index that favorizes low indexes TODO tweak
- return std::min(noise() % population.size(), noise() % population.size());
+ return noise() % population.size();
}
public: