Hi, before I saying anything, I just want to say I am new to this and I apologize in advance for asking questions that may seem obvious. I'm just trying my best to learn up on these stuff. =)
I am currently trying to load a random word when a user touches up on a UIButton; where the random word comes from a SQLite table. What I did so far was make an (IBAction) for the button to generate a random number.
- (IBAction)generateRandom

id)sender {
srandom(time(NULL));
int row = arc4random() % MAX + 1 ;
}
With this generated number I want to go back into my SQLite table to match what word is saved in that row number. In my SQLite table, i set up an id for the number and a word column.
A friend of mine said I need to query something. Would you all be so kind enough in explaining what I should do to accomplish what I need to do?
I would greatly appreciate it. Thank you!