#include #include #include #include using namespace std; void attesa() { std::random_device rd; std::mt19937 gen(rd()); // seed the generator std::uniform_int_distribution<> distr(1, 1000); std::this_thread::sleep_for(std::chrono::milliseconds(distr(gen))); } void funzione(string nome) { for (int i = 0; i < 10; i++) { attesa(); cout << "funzione " <