NSArray *arrNumbers = @[@2, @4, @7, @9, @13, @15];
NSLog(@"%d",[[arrNumbers objectAtIndex:arc4random_uniform(arrNumbers.count)] intValue]);
6
solved generate random number from given set of numbers in ios [closed]
NSArray *arrNumbers = @[@2, @4, @7, @9, @13, @15];
NSLog(@"%d",[[arrNumbers objectAtIndex:arc4random_uniform(arrNumbers.count)] intValue]);
6
solved generate random number from given set of numbers in ios [closed]