#include <iostream>
#include <iomanip>
#include <random>
int main() {
std::random_device rd;
std::default_random_engine dre(rd());
std::uniform_real_distribution<> dist(2, 7);
for (int i = 0; i < 20; i++) {
std::cout << std::setprecision(3) << dist(dre) << "\n";
}
}
/*
run:
2.17
5.74
6.2
3.35
2.99
2.36
6.64
2.5
6.17
6.95
6.82
5.64
4.16
3.22
3.29
2.68
2.18
2.38
4.82
5.24
*/