Created
July 30, 2013 00:31
-
-
Save isoiphone/6109120 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString*)getTestString { | |
NSArray* superlatives = @[@"fabulous", @"excellent", @"cute", @"energetic", @"furry", @"beautiful", @"lovely", @"amazing"]; | |
NSArray* animals = @[@"cats", @"lemurs", @"bears", @"fish", @"sheep", @"sloth",@"aye-ayes", @"platypuses", @"zebras", @"pandas", @"albatross"]; | |
NSUInteger r1 = arc4random()/(float)0x100000000 * [superlatives count]; | |
NSUInteger r2 = arc4random()/(float)0x100000000 * [animals count]; | |
return [NSString stringWithFormat:@"%@ %@", superlatives[r1], animals[r2]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment