Coffeehouse Namer

by ryantroyford

HTML

<div id="log"></div>

JavaScript

function any(lst) {
    return lst[Math.floor(Math.random() * lst.length)];
};

function print(text) {
    $("#log").append(text);
};

var adj = "Cinnamon Feathered Vinegar Pickled Sleepy Sleeping Drowsy Groggy Action Jolly Merry Perky Little Big Le La El Java Red Blue Frosted Dewy Valiant Local Rockin’ Ivy Glass Rad Steamin’ Buttery Original New Old The Brave Hobbit Mom’s Fresh Sunny Winter Hometown Vienna Seattle Hollerin’ Noble Bean Antique Dancing Jumping Hopping Rising Singing Emerald Sapphire Metropolitan Morning Uptown Downtown Brass Bronze Chrome Wooden Nutmeg".split(" ");

var noun = "Owl Twig Pup Seed Sprout Cat Fox Kitten Cup Mug Shot Bear Wolverine House Café Frog Fawn Faun Pixie Fairy Noise Daffodil Holler Summer Stag Moose Elk Metro Crema Scene Rhapsody Loft Sun Bean Hill Valley Home Avenue Street Boulevard Circle Perk Grind Jitters Patina Gopher Squirrel Sparrow Whale Dolphin Oak Spruce River Bijou Bus Blend Wizard Sisters Brothers Friends Moth Rabbit Balloon Apple Harmonica".split(" ");

if (Math.random() > 1 / 3) {
    print(any(adj) + " " + any(noun));
} else {
    print("The " + any(noun) + " & " + any(noun));
}