- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
if(self.model.allContestantImages.allKeys.count > 0 && clearArrayContent.count > 0)
{
while (self.model.allContestantImages[topMemberId] == nil ||
self.model.allContestantImages[bottomMemberId] == nil )
{
contestIndex = (arc4random() % clearArrayContent.count); // <---------- HERE
dictContent = clearArrayContent[contestIndex];
topMemberId = [dictContent[@"top_member_id"] knzIdentifier];
bottomMemberId = [dictContent[@"bottom_member_id"] knzIdentifier];
}
}