xuyannan's Blog

host on Github

Objective-C生成随机数

int _p = (arc4random() % 900) + 1;

生成1~900的随机数。

comments powered by Disqus