Skip to content

Instantly share code, notes, and snippets.

@devstopfix
Created May 10, 2015 20:39
Show Gist options
  • Save devstopfix/0963ec6ab65fc463952b to your computer and use it in GitHub Desktop.
Save devstopfix/0963ec6ab65fc463952b to your computer and use it in GitHub Desktop.
Ruby planet name generator
PAIRS="..LEXEGEZACEBISOUSESARMAINDIREA.ERATENBERALAVETIEDORQUANTEISRION"
planet = (3+rand(2)).times.map { PAIRS[rand(32) * 2,2] }.join.gsub('.', '').capitalize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment