#include<stdlib.h> #include<ctime> using namespace std; //Generate random numbers int main(){ srand(time(0)); for (int i = 0; i < 10; i++){ cout<< (rand() % 10) + 1<<" ";