Created
March 7, 2023 10:48
-
-
Save ickas/7cfe7e4ed04e5d9a2b4765712b14b461 to your computer and use it in GitHub Desktop.
Generate funny names based on a list
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 names = [ | |
"Bumfuzzle", | |
"Cattywampus", | |
"Brouhaha", | |
"Malarkey", | |
"Gobbledygook", | |
"Kerfuffle", | |
"Flummox", | |
"Bamboozle", | |
"Flibbertigibbet", | |
"Lollygag", | |
"Nincompoop", | |
"Fiddle-faddle", | |
"Brouhaha", | |
"Hocus-pocus", | |
"Scooch", | |
"Ballyhoo", | |
"Hullabaloo", | |
"Hooey", | |
"Squabble", | |
"Razzle-dazzle", | |
"Silly-willy", | |
"Blubber", | |
"Guffaw", | |
"Snollygoster", | |
"Piffle", | |
"Hokum", | |
"Skedaddle", | |
"Whippersnapper", | |
"Bloviate", | |
"Fuddy-duddy", | |
"Higgledy-piggledy", | |
"Gobsmacked", | |
"Lickety-split", | |
"Mumbo jumbo", | |
"Noodle", | |
"Poppycock", | |
"Ragamuffin", | |
"Shenanigans", | |
"Spelunker", | |
"Tittle-tattle", | |
"Touche", | |
"Wackadoodle", | |
"Yahoo", | |
"Yowza", | |
"Floozy", | |
"Gazump", | |
"Hoo-ha", | |
"Hullerbaloo", | |
"Jabberwocky", | |
"Kibosh", | |
"Kvetch", | |
"Mollycoddle", | |
"Namby-pamby", | |
"Pettifog", | |
"Rigmarole", | |
"Rube Goldberg", | |
"Salamander", | |
"Scapegrace", | |
"Schmooze", | |
"Skedaddle", | |
"Skullduggery", | |
"Smegma", | |
"Snollygoster", | |
"Spoonerism", | |
"Taradiddle", | |
"Umlaut", | |
"Vamoose", | |
"Widdershins", | |
"Wigwag", | |
"Wonky", | |
"Xertz", | |
"Yammer", | |
"Yokel", | |
"Zoinks", | |
"Bamboozlement", | |
"Berserk", | |
"Blabbermouth", | |
"Blatherskite", | |
"Bloviation", | |
"Bumbershoot", | |
"Cockamamie", | |
"Codswallop", | |
"Fiddlesticks", | |
"Filibuster", | |
"Folderol", | |
"Gobbledygook", | |
"Gobbledygook", | |
"Hemidemisemiquaver", | |
"Hocus-pocus", | |
"Hoity-toity", | |
"Hullabaloo", | |
"Jibber-jabber", | |
"Kerfuffle", | |
"Lickspittle", | |
"Mumbo jumbo", | |
"Murmuration", | |
"Nincompoop", | |
"Piffle", | |
"Poppycock", | |
"Razzmatazz", | |
"Shilly-shally", | |
"Skullduggery", | |
"Snickersnee", | |
"Snollygoster", | |
"Spelunker", | |
"Topsy-turvy", | |
"Tuchis", | |
"Wiggle-room", | |
"Willy-nilly", | |
"Zaftig" | |
] | |
const funnyNames = new Set(); | |
function getRandomName() { | |
let name; | |
do { | |
name = names[Math.floor(Math.random() * names.length)]; | |
} while (funnyNames.has(name)); | |
funnyNames.add(name); | |
return name; | |
} | |
const name1 = getRandomName(); | |
const name2 = getRandomName(); | |
console.log(`The first funny name is ${name1} and the second is ${name2}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment