2 -- 生成随机数
2016-08-08 本文已影响0人
_Nevermore
int num = (arc4random() % 1000000);
NSString *randomNumber = [NSString stringWithFormat:@"%.6d", num];
self.randomNumber = randomNumber;
int num = (arc4random() % 1000000);
NSString *randomNumber = [NSString stringWithFormat:@"%.6d", num];
self.randomNumber = randomNumber;