"-" ... arc4random(), . , .
:
if (!self.dictionaryValues) {
[self loadList];
} else {
NSMutableDictionary *unusedValueList = [[NSMutableDictionary alloc] initWithDictionary:self.dictionaryValues];
int random = arc4random()%[self.dictionaryValues count];
int i=0;
for (NSString *key in self.dictionaryValues) {
i++;
if (i == random) {
NSLog(@"MATCH! on key=%@", key);
[unusedValueList removeObjectForKey:key];
}
}
self.dictionaryValues = nil;
self.dictionaryValues = unusedValueList;
}
, !