Skip to content

Instantly share code, notes, and snippets.

@carbamide
Last active August 29, 2015 13:56
Show Gist options
  • Save carbamide/8962667 to your computer and use it in GitHub Desktop.
Save carbamide/8962667 to your computer and use it in GitHub Desktop.
Random name
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
NSArray *names = @[@"Jones", @"Carvin", @"Cuckler", @"Davis", @"Etchison", @"Gable", @"Barrow"];
int nameIndex = arc4random_uniform([names count]);
NSLog(@"%@", names[nameIndex]);
}
}
@shaun-jss
Copy link

Its missing "Toby"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment