Skip to content

Instantly share code, notes, and snippets.

@hcientist
Created August 14, 2014 18:25
Show Gist options
  • Save hcientist/0452e12a55a73d1a0d13 to your computer and use it in GitHub Desktop.
Save hcientist/0452e12a55a73d1a0d13 to your computer and use it in GitHub Desktop.
Silly Name Generator
//got the lists for this from: http://stackoverflow.com/q/16826200/1449799
function getName() {
var firstName = ["Runny", "Buttercup", "Dinky", "Stinky", "Crusty",
"Greasy","Gidget", "Cheesypoof", "Lumpy", "Wacky", "Tiny", "Flunky",
"Fluffy", "Zippy", "Doofus", "Gobsmacked", "Slimy", "Grimy", "Salamander",
"Oily", "Burrito", "Bumpy", "Loopy", "Snotty", "Irving", "Egbert", "Waffer", "Lilly","Rugrat","Sand", "Fuzzy","Kitty",
"Puppy", "Snuggles","Rubber", "Stinky", "Lulu", "Lala", "Sparkle", "Glitter",
"Silver", "Golden", "Rainbow", "Cloud", "Rain", "Stormy", "Wink", "Sugar",
"Twinkle", "Star", "Halo", "Angel"];
// var middleName =["Waffer", "Lilly","Rugrat","Sand", "Fuzzy","Kitty",
// "Puppy", "Snuggles","Rubber", "Stinky", "Lulu", "Lala", "Sparkle", "Glitter",
// "Silver", "Golden", "Rainbow", "Cloud", "Rain", "Stormy", "Wink", "Sugar",
// "Twinkle", "Star", "Halo", "Angel"];
var lastName1 = ["Snicker", "Buffalo", "Gross", "Bubble", "Sheep",
"Corset", "Toilet", "Lizard", "Waffle", "Kumquat", "Burger", "Chimp", "Liver",
"Gorilla", "Rhino", "Emu", "Pizza", "Toad", "Gerbil", "Pickle", "Tofu",
"Chicken", "Potato", "Hamster", "Lemur", "Vermin"];
var lastName2 = ["face", "dip", "nose", "brain", "head", "breath",
"pants", "shorts", "lips", "mouth", "muffin", "butt", "bottom", "elbow",
"honker", "toes", "buns", "spew", "kisser", "fanny", "squirt", "chunks",
"brains", "wit", "juice", "shower"];
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
return [
firstName[getRandomInt(0, firstName.length)],
// middleName[getRandomInt(0, middleName.length)],
lastName1[getRandomInt(0, lastName1.length)],
lastName2[getRandomInt(0, lastName2.length)]
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment