this line of code gives the ans. 2 (which is right)
int def = arc4random() % 2;
NSLog(@"%@",[uniqueNumbers objectAtIndex:def]);
but when i use
int def = arc4random() % 2;
//NSLog(@"%@",[uniqueNumbers objectAtIndex:def]);
c1 = (int)[uniqueNumbers objectAtIndex:def];
NSLog(@"%d", c1);
it gives 115669616. where c1 is an integer. what is the problem?