Last active
November 13, 2018 20:23
-
-
Save CptSpaceToaster/6be79c4a1e42a07e6e0c15567a9f1326 to your computer and use it in GitHub Desktop.
Generate a silly fishy-pants themed company name
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
#!/usr/bin/env python | |
import random | |
import argparse | |
fish = [ | |
'Angle', | |
'Bait', | |
'Bob', | |
'Castaway', | |
'Fish', | |
'Net', | |
'Trawl' | |
] | |
pants = [ | |
'Chaps', | |
'Cords', | |
'Jeans', | |
'Pants', | |
'Shorts', | |
'Slacks', | |
'Trousers', | |
'Overalls' | |
] | |
companies = [ | |
'Innovations', | |
'Interactive', | |
'Productions', | |
'Enterprises', | |
'Incorporated' | |
] | |
def gen_random_company_name(): | |
f = random.choice(fish) | |
p = random.choice(pants) | |
c = random.choice(companies) | |
print('{}{} {}'.format(f, p, c)) | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser(description='Generate a silly fishy-pants themed company name') | |
parser.add_argument('count', type=int, nargs='?', default=1, | |
help='Number of items to generate') | |
args = parser.parse_args() | |
done = 0 | |
while (done < args.count): | |
done += 1 | |
gen_random_company_name() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment