Skip to content

Instantly share code, notes, and snippets.

@TunedMystic
Created March 8, 2018 22:03
Show Gist options
  • Save TunedMystic/e84a3c70ada3cb7174d3bc6954a63483 to your computer and use it in GitHub Desktop.
Save TunedMystic/e84a3c70ada3cb7174d3bc6954a63483 to your computer and use it in GitHub Desktop.
Generate a name from a random adjective and a random noun.
import random
adjectives = ['ashy', 'black', 'blue', 'gray', 'green', 'icy', 'lemon', 'mango', 'orange', 'purple', 'red', 'salmon', 'white', 'yellow', 'aggressive', 'agreeable', 'ambitious', 'brave', 'calm', 'delightful', 'eager', 'faithful', 'gentle', 'happy', 'jolly', 'kind', 'lively', 'nice', 'obedient', 'polite', 'proud', 'silly', 'thankful', 'victorious', 'witty', 'wonderful', 'zealousangry', 'bewildered', 'clumsy', 'defeated', 'embarrassed', 'fierce', 'grumpy', 'helpless', 'itchy', 'jealous', 'lazy', 'mysterious', 'nervous', 'obnoxious', 'panicky', 'pitiful', 'repulsive', 'scary', 'thoughtless', 'uptight', 'worried']
nouns = ['antelope', 'badger', 'mastif', 'bear', 'beaver', 'bobcat', 'chipmunk', 'coyote', 'deer', 'mule', 'elk', 'fox', 'gopher', 'lion', 'mouse', 'cactus', 'pinyon', 'pocket', 'muskrat', 'otter', 'porcupine', 'rabbit', 'cottontail', 'jack', 'raccoon', 'rat', 'kangaroo', 'pack', 'wood', 'ringtail', 'vagrant', 'skunk', 'hooded', 'striped', 'spotted', 'squirrel']
def random_name():
adj = random.choice(adjectives)
noun = random.choice(nouns)
return '{} {}'.format(adj.title(), noun.title())
@TunedMystic
Copy link
Author

TunedMystic commented Mar 8, 2018

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