为什么80%的码农都做不了架构师?>>> 获取0-6的随机数 CGFloat a = arc4random_uniform(6); CGFloat a = arc4random()%6; 转载于:https://my.oschina.net/cgphp/blog/417027