Hey, so im trying to make a memory game using 2d arrays.
This is my code to randomly generate the rows and columns but its not giving me pairs, could someone tell me why, i really dont know.
for (int r=0; r<4; r++)
{
for (int c=0; c<4; c++)
{
cards[r][c]=rand()%8+1;
cout<<cards[r][c];
}
cout<<endl;
}