You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static std::mt19937 mt(std::random_device{}()); // Static PRNG to avoid reseeding
std::uniform_real_distribution<double> dist(min, std::nextafter(max, std::numeric_limits<double>::max())); // moves max double to the nearest next 53-bit closest double
// closed interval
return dist(mt); // Generate and return a random double
}
// check random value
// int main()
// {
// int random;
// while (true)
// {
// random = static_cast<int>(generateRandomFloat() * 40);