It consists in drawing two numbers at random, but surely you have to reinitialize the srand because it goes wrong and in another project that I have the two numbers are the same.
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;
int main()
{
int numero,numero2;
srand(time(NULL));
numero=rand() % 5+1;
cout << "El numero es:"<<numero<<endl;
srand(time(NULL));
numero=rand() % 5+1;
cout << "El segundo numero es:"<<numero2;
}