You are using the SAME TAG “Images” for every number you set. Hence it gets replaced again and again
dic=[[NSMutableDictionary alloc]init];
for (m = 0; m < 20; m++)
{
rnd = arc4random_uniform(FrontsCards.count);
[dic setObject:[NSNumber numberWithInt:rnd] forKey:[NSString stringWithFormat:@"Images_%d",rnd];
}
NSLog(@"%@",[dic description]);
0
solved Insert few objects from an array in nsmutable dictionary