diff --git a/src/random.hpp b/src/random.hpp index a47181c..d388eff 100644 --- a/src/random.hpp +++ b/src/random.hpp @@ -32,7 +32,7 @@ namespace sc { } template - T choice(Iter from, Iter to) { + static T choice(Iter from, Iter to) { std::uniform_int_distribution dist {0, static_cast(to - from) - 1}; return *(from + dist(instance()._reng)); }