配列からランダムな文字列を選択するための次のコードがあります。
NSArray *popupMessages = [NSArray arrayWithObjects:
@"Shoulda' been bobbin' and weaving! Need anything from the shop?",
@"Don't forget you can use old boss's guns! Available in the shop!",
@"Hey Chaz, you Bojo! You need more POWER! Come by the shop for some better weapons!",
@"Aw… lame. Maybe I got something that can help you out here at my shop!",
nil];
int pmCount = popupMessages.count; // Breakpoint Here - pmCount = 971056545
int messageIndex = arc4random() % pmCount; // Breakpoint Here - same as above
cocos2dでARCを使用しています。配列のカウントがこのような巨大な数を返す理由について何か考えはありますか? ありがとう!