I’m trying to get a random number generator working on the iPhone. There are two text fields a label and a button. Enter the minimum number in one textfield and the maximum in the next. Clicking the button will display the random number in the UILabel. I did this once before and can’t figure it out for the life of me today. Any code or places I could visit to find this out would be fantastic.
Thanks
Update:
It appears that it is probably better to use
arc4randomas opposed torandyou can see more about it here. Just replace all therands witharc4random