#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main ()
{
int r1c1 , r1c2 , r1c3, r1c4 ,
r2c1 , r2c2 , r2c3 , r2c4 ,
r3c1 , r3c2 , r3c3 , r3c4 ,
r4c1 , r4c2 , r4c3 , r4c4 ;
int maxTrials;
srand (time(NULL));
char quit;
bool replay = false;
r1c1 = rand() % 4 + 1;
r2c2 = rand() % 4 + 1;
r1c4 = rand() % 4 + 1;
r2c4 = rand() % 4 + 1;
r3c2 = rand() % 4 + 1;
r4c1 = rand() % 4 + 1;
r3c3 = rand() % 4 + 1;
r4c4 = rand() % 4 + 1;
this is part fo my code... im not allowed to use array n the numbers generated shouldnt repeat... how to correct it?? anyone can help??