iPhone程序中如何生成随机数

举例:如果需要生成0-99的随机数,可以用下面的函数
int r = arc4random() % 100;

posted on 2012-11-20 18:54  流れ星ーー  阅读(220)  评论(0编辑  收藏  举报

导航