Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

randomAColorEntity 有点问题 #8

Open
spamcc opened this issue Feb 9, 2016 · 1 comment
Open

randomAColorEntity 有点问题 #8

spamcc opened this issue Feb 9, 2016 · 1 comment

Comments

@spamcc
Copy link

spamcc commented Feb 9, 2016

建议这样修改:

- (SXCLEntity *)randomAColorEntity
{
    NSInteger x1 = arc4random() % 10;
    NSArray *ary1 = self.marray[x1];
    NSInteger y1 = arc4random() % ary1.count;
    return ary1[y1];
}
@dsxNiubility
Copy link
Owner

3Q,已经改正,我当时这里写的太楞了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants