diff options
Diffstat (limited to 'src/support/learning.h')
-rw-r--r-- | src/support/learning.h | 3 |
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: |