From ecf110239a8cada6de219cee8bd5c7b178c9e51b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 17 May 2016 14:57:05 -0700 Subject: tweak learning index picking --- src/support/learning.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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: -- cgit v1.2.3