#include <iostream>
#include <random> // mt19937
#include <chrono>
int main() {
// Use a high-resolution clock to get a more precise seed
unsigned seed = std::chrono::high_resolution_clock::now().time_since_epoch().count();
// Initialize the random number generator with the seed
std::mt19937 generator(seed);
// Define a distribution range
std::uniform_int_distribution<int> distribution(1, 100);
// Generate a random number
int random_number = distribution(generator);
std::cout << "Random number: " << random_number << std::endl;
}
/*
run:
Random number: 15
*/