#include <iostream>
#include <random>
static double GenerateRandomDoubleNumberMinMax(double min, double max) {
std::random_device rd; // Obtain a random number from the hardware
std::mt19937 eng(rd()); // Seed the generator
std::uniform_real_distribution<> distr(min, max);
return distr(eng);
}
int main() {
double min = 70;
double max = 100;
double d = GenerateRandomDoubleNumberMinMax(min, max);
std::cout << d << std::endl;
}
/*
run:
95.1492
*/