I have an array of names and an array of numbers.
My Person class has a property for both the name and the number. I want to assign the random values to random people.
Suppose I have an array with the strings @"mary" , @"Jack" and @"ABhraham"
and another array with the numbers 122, 378, 987
, I want to assign them these values randomly. I used the arc4random()
method but it sometimes returns the same value again.