View Single Post
Old 08-08-2019, 03:42 PM   #15
Michael Thayne
 
Michael Thayne's Avatar
 
Join Date: May 2010
Default Re: How do you name your dragons?

Draft Ruby script for generating random dragon names:
Code:
def dragon_name
  consonants = ['f', 'fr', 'g', 'gr', 'k', 'kr', 's', 'sh', 'th', 'thr', 'x', 'z']
  end_consonants = ['f', 'g', 'k', 's', 'sh', 'th', 'x', 'z']
  vowels = ['a', 'ai', 'e', 'ee', 'i', 'o', 'u', 'y']
  name = ''
  3.times do
    name += consonants.sample
    name += vowels.sample
  end
  name += end_consonants.sample if rand(2) == 0
  name.capitalize
end
Example output: Grograixuth, Shifraise, Graikrugra, Frifukai, Kyfaifu, Seegrekeez
Michael Thayne is offline   Reply With Quote