int sin2(int g)
{
static int metritis1=1,i=0;
int l,c,pin[100],pin2[100];
char result;
srand ( time(NULL) );
l = rand() % 10;
c = rand() % 10;
c=65+c;
l=l+1;
pin[g]=c;
pin2[g]=l;
printf("%d and %d the g is %d\n",pin[g],pin2[g],g);
while (1){
if (pin[i]==pin[g] && pin2[i]==pin2[g]){
printf("%c kai %d g is %d to i %d\n",pin[g],pin2[g],g,i);
l = rand() % 10;
c = rand() % 10;
c=65+c;
l=l+1;
pin[g]=c;
pin2[g]=l;
printf("%c and %d g is %d the i %d\n",pin[g],pin2[g],g,i);
i=-1;}
i++; }
guys i have a problem...this function doesn't work for me...look i want this function to check in the 2 arrays pin,pin2 for previous numbers already stored in these arrays but it doesn't work...also when i find 2 numbers already stores(same pair of numbers) then i want even if it changes the numbers then to recheck over and over until the pair of numbers is new...any ideas???why doesn't it work?