2013-01-03 03:19:13 UTC
At the moment it generates 5 random numbers (between 1 - 5) but they are not unique
using namespace std;
#include
#include
#define noofmines 5
int gridsize = 5;
int randarray[noofmines];
char grid[5][5];
int main()
{
int n;
srand(time(NULL));
for (n=0; n
randarray[n]= rand() % noofmines+1;
cout<
}
}