I\'m having a strange problem here, and I can\'t manage to find a good explanation to it, so I thought of asking you guys :
Consider the following method :
modern Qt c++ 11
#include #include "QDateTime" int getRand(int min, int max){ unsigned int ms = static_cast(QDateTime::currentMSecsSinceEpoch()); std::mt19937 gen(ms); std::uniform_int_distribution<> uid(min, max); return uid(gen); }