#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSMutableArray *arr=[NSMutableArray array];
for (int i=0; i<100; i++) {
if (i<100) {
int x=(arc4random()%51)+50;
NSString *str=[NSString stringWithFormat:@"%d",x];
[arr addObject:str];
}
}
NSLog(@"%@",arr);
}
return 0;
}
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSMutableArray *arr=[NSMutableArray array];
for (int i=0; i<100; i++) {
if (i<100) {
int x=(arc4random()%51)+50;
NSString *str=[NSString stringWithFormat:@"%d",x];
[arr addObject:str];
}
}
NSLog(@"%@",arr);
}
return 0;
}