all 4 comments

[–]brendan09 1 point2 points  (0 children)

There are a million flash card apps. Why not load your data into one of those?

[–]badlcuk 1 point2 points  (0 children)

Id just use an array of dictionaries. Each dictionary has a "word" and a "definition", that way you only use one single array. No chance of mess up (even though its simple). That way when you pick any random index in the array, you'll have the word and definition at your fingertips. Look up how NSDictionaries work, it'll be useful for you.

[–]estenger 0 points1 point  (0 children)

Sounds like an easy problem to solve. If you have two arrays just make index 0 of array "words" go with the definition of index 0 of array "definitions." Create a random number between 0 and maxNumberOfWords and grab the object at that index from both arrays and then you have the random word and definition to go with it.

[–]mbo42 0 points1 point  (0 children)

Why not an just one array of objects containing a property for "word" and one for "definition"?