Skip to content

Instantly share code, notes, and snippets.

@EonYang
Created May 7, 2021 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EonYang/01b7c09b3c4bee138338af0f9df954b2 to your computer and use it in GitHub Desktop.
Save EonYang/01b7c09b3c4bee138338af0f9df954b2 to your computer and use it in GitHub Desktop.
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