Skip to content

Instantly share code, notes, and snippets.

@vamsii
Created April 23, 2012 15:36
Show Gist options
  • Save vamsii/2471720 to your computer and use it in GitHub Desktop.
Save vamsii/2471720 to your computer and use it in GitHub Desktop.
Heroku like hostname generator
<?php
$adjs = array( "autumn", "hidden", "bitter", "misty", "silent", "empty",
"dry", "dark", "summer", "icy", "delicate", "quiet", "white", "cool",
"spring", "winter", "patient", "twilight", "dawn", "crimson", "wispy",
"weathered", "blue", "billowing", "broken", "cold", "damp", "falling",
"frosty", "green", "long", "late", "lingering", "bold", "little",
"morning", "muddy", "old", "red", "rough", "still", "small",
"sparkling", "throbbing", "shy", "wandering", "withered", "wild",
"black", "young", "holy", "solitary", "fragrant", "aged", "snowy",
"proud", "floral", "restless", "divine", "polished", "ancient", "purple",
"lively", "nameless" );
$nouns = array("waterfall", "river", "breeze", "moon", "rain", "wind", "sea", "morning",
"snow", "lake", "sunset", "pine", "shadow", "leaf", "dawn", "glitter",
"forest", "hill", "cloud", "meadow", "sun", "glade", "bird", "brook",
"butterfly", "bush", "dew", "dust", "field", "fire", "flower", "firefly",
"feather", "grass", "haze", "mountain", "night", "pond", "darkness",
"snowflake", "silence", "sound", "sky", "shape", "surf", "thunder",
"violet", "water", "wildflower", "wave", "water", "resonance", "sun",
"wood", "dream", "cherry", "tree", "fog", "frost", "voice", "paper",
"frog", "smoke", "star");
$rand_key1 = array_rand($adjs, 1);
$rand_key2 = array_rand($adjs, 1);
echo $adjs[$rand_key1].$nouns[$rand_key2].mt_rand(1, 9);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment