diff --git a/include/simpleengine/random.h b/include/simpleengine/random.h index bb4c667..9fc6ab0 100644 --- a/include/simpleengine/random.h +++ b/include/simpleengine/random.h @@ -9,6 +9,8 @@ #include #include +#include + namespace simpleengine { template class Random { @@ -20,7 +22,8 @@ namespace simpleengine { this->gen = Generator(rd()); } - template> + template || std::is_same_v, + std::uniform_int_distribution, std::uniform_real_distribution>> T NextInRange(T min, T max) { Dist dist(min, max);