#include#include int main() { for(int i = 0; i < 10; i++) { std::cout << rand() << std::endl; } return 0; }
#includeThis program generates a random number between two values specified by the user. Package library: The rand function is part of the C standard library and is included in the#include int main() { int min = 1, max = 100; int random_num = min + (rand() % (max - min + 1)); std::cout << "Random number between " << min << " and " << max << ": " << random_num << std::endl; return 0; }