Skip to content

Instantly share code, notes, and snippets.

@skord
Last active May 18, 2016 16:29
Show Gist options
  • Save skord/9d2f4e8cdb0f41ee9271 to your computer and use it in GitHub Desktop.
Save skord/9d2f4e8cdb0f41ee9271 to your computer and use it in GitHub Desktop.
Approved Random Name Generator
module RandomNameHelper
def generate_name(seperator = '_')
rnd = Random.rand(64)
"#{adjectives.sample}#{seperator}#{nouns.sample}#{seperator}#{rnd}"
end
private
def adjectives
[
"hidden", "bitter", "morose", "empty", "kafkaesque", "dark",
"barbaric", "steely", "fire", "liquid", "metal", "bloody", "murderous", "monstrous",
"wicked", "blunt-force", "vindictive", "crimson", "vicious", "weathered", "deadly",
"traumatic", "broken", "frigid", "nightmarish", "abrasive", "lacerated", "tormented",
"tortured", "blackened", "brutal", "satanic", "demonic", "damnable",
"fiendish", "vile", "poisonous", "venomous", "fatal", "hostile",
"toxic", "withered", "wild", "black", "grim", "unholy", "sanctimonious",
"warmongering", "bloodthirsty", "sinful", "depraved", "malevolent", "restless",
"vengeful", "barren", "inhospitable", "nameless"
]
end
def nouns
[
"inferno", "hell", "squirrel", "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",
"chipmunk", "grass", "haze", "mountain", "night", "pond", "darkness",
"snowflake", "silence", "sound", "sky", "shape", "surf", "thunder",
"violet", "hallow", "wildflower", "wave", "bifrost", "resonance", "sun",
"wood", "dream", "cherry", "tree", "fog", "frost", "voice", "thunder",
"frog", "smoke", "star"
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment