Created
May 7, 2021 03:00
-
-
Save EonYang/01b7c09b3c4bee138338af0f9df954b2 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
const adjectives = `Adaptable | |
Adventurous | |
Affectionate | |
Alert | |
Ambitious | |
Amiable | |
Astute | |
Attentive | |
Authentic | |
Aware | |
Awesome | |
Bold | |
Brave | |
Calm | |
Capable | |
Caring | |
Compassionate | |
Confident | |
Considerate | |
Consistant | |
Courageous | |
Courteous | |
Curious | |
Decisive | |
Dependable | |
Determined | |
Dexterous | |
Diligent | |
Diplomatic | |
Dynamic | |
Earnest | |
Encouraging | |
Energetic | |
Engaging | |
Enthusiastic | |
Fair | |
Fearless | |
Flexible | |
Focused | |
Forgiving | |
Forthright | |
Free-spirited | |
Friendly | |
Fun | |
Fun-loving | |
Generous | |
Gentle | |
Genuine | |
Giving | |
Graceful | |
Gracious | |
Happy | |
Hardworking | |
Honest | |
Hopeful | |
Humble | |
Humorous | |
Idealistic | |
Imaginative | |
Innovative | |
Insightful | |
Intuitive | |
Inventive | |
Joyful | |
Just | |
Kind | |
Lively | |
Loving | |
Loyal | |
Merry | |
Motivated | |
Motivational | |
Nurturing | |
Observant | |
Open | |
Open-hearted | |
Open-minded | |
Optimistic | |
Organized | |
Outgoing | |
Patient | |
Persistent | |
Playful | |
Positive | |
Precise | |
Punctual | |
Purposeful | |
Quick-witted | |
Radiant | |
Realistic | |
Reflective | |
Reliable | |
Resourceful | |
Sincere | |
Sociable | |
Social | |
Strong | |
Sympathetic | |
Trusting | |
Trustworthy | |
Upbeat | |
Vivacious | |
Warm | |
Welcoming | |
Wise | |
Zany`.split("\n"); | |
const nouns = `Squirrel | |
Bear | |
Chipmunk | |
Blue Whale | |
Porcupine | |
Lion | |
Hedgehog | |
Coyote | |
Possum | |
Dolphin | |
Meerkat | |
Crocodile | |
Otter | |
Raccoon | |
Hyena | |
Jackal | |
Fox | |
Monkey | |
Panda | |
Deer | |
Black Leopard | |
Wombat | |
Kangaroo | |
Tiger | |
Cheetah | |
Zebra | |
Giraffe | |
Jaguar | |
Hippopotamus | |
Wolf | |
Elephant | |
Chimpanzee | |
Gorilla | |
Snake | |
Eagle | |
Vulture | |
Elk | |
Antelope | |
Camel | |
Owl | |
Ox | |
Alligator | |
Panther | |
Parrot | |
Flamingo | |
Impala | |
Warthog | |
Rhinoceros | |
Blackbuck | |
Beaver`.split("\n"); | |
export const randomName = (glue: string = " "): string => { | |
const i = Math.floor(Math.random() * adjectives.length); | |
const j = Math.floor(Math.random() * nouns.length); | |
return adjectives[i] + glue + nouns[j]; | |
}; | |
console.log(adjectives) | |
console.log(nouns) | |
console.log(randomName()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment