iOS获取六位随机数(可以自动补位比如"0")
int a = arc4random() % 100000;
NSString *str = [NSString stringWithFormat:@"%06d", a];
iOS获取六位随机数(可以自动补位比如"0")
int a = arc4random() % 100000;
NSString *str = [NSString stringWithFormat:@"%06d", a];
本文标题:iOS获取六位随机数
本文链接:https://www.haomeiwen.com/subject/edjphttx.html
网友评论