Created
May 10, 2015 20:39
-
-
Save devstopfix/0963ec6ab65fc463952b to your computer and use it in GitHub Desktop.
Ruby planet name generator
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
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