Is there a command to update an int according to the time using a command? Say i have somthing like:
srand(time(NULL));
int x=rand() % 15;
cout<<x;
//command here?
cout<<x;
Where that second x is I need it to be different than the first one, but using the same int. Is this possible?