Enables random number generation

This commit is contained in:
Felipe Zimmerle 2017-06-16 23:19:41 -03:00
parent 4726912ec8
commit 3ebc2d61fb
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -27,14 +27,11 @@ namespace utils {
double random_number(const double from, const double to) {
#if 0
std::random_device rd;
std::mt19937 mt(rd());
return std::bind(
std::uniform_real_distribution<>{from, to},
std::default_random_engine{ mt() })();
#endif
return from+1;
}