Hi,
I'm trying to make an IBAction pick a random float from a fixed list (1.45, 3.89, 5.77 and 12.56).
In the viewDidLoad:
pickNumber = [[NSMutableArray alloc] init];
[pickNumber addObject:@"1.45"];
[pickNumber addObject:@"3.89"];
[pickNumber addObject:@"5.77"];
[pickNumber addObject:@"12.56"];
In the IBAction:
-(IBAction)butoonPressed: (id)sender{
result = [pickNumber objectAtIndex

arc4random() % [pickNumber count])];
Obviously this isn't working, i get an error "Assigning to 'float' from incompatible type 'id'.
Any ideas how to get one of the numbers into "result"?