Fixed static method
This commit is contained in:
parent
a0f852d419
commit
d607dab17c
@ -32,7 +32,7 @@ namespace sc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename Iter>
|
template <typename T, typename Iter>
|
||||||
T choice(Iter from, Iter to) {
|
static T choice(Iter from, Iter to) {
|
||||||
std::uniform_int_distribution<int> dist {0, static_cast<int>(to - from) - 1};
|
std::uniform_int_distribution<int> dist {0, static_cast<int>(to - from) - 1};
|
||||||
return *(from + dist(instance()._reng));
|
return *(from + dist(instance()._reng));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user