Quote:
Originally Posted by Gamer211
I don't mean to sound like a jerk, but did you google "arc4random code for iphone", when I did I got a few explainations. Some from this site.
|
yes i did. its such a simple statement thats why i dont understand what im doing wrong.
a few more notes.
in gdb im using "print" to see the value in the variable.
second, this is what my line of code looks like exactly
Code:
int newValue = arc4random() % [self.myArray count];
and to test i am just typing this in gdb
Code:
print (int)arc4random() % [myArray count]
note: there is a casting problem in gdb so that line might not be exact.
any more ideas guys?