摘要: ios 有如下三种随机数方法: 1. srand((unsigned)time(0)); //不加这句每次产生的随机数不变 int i = rand() % 5; 2. srandom(time(0)); int i = random() % 5;3. int i = arc4random() % 阅读全文
posted @ 2016-03-17 15:09 Cranz_JF 阅读(135) 评论(0) 推荐(0) 编辑