haiku.rb
# Generates an array of words with `num` syllables
Generates an array of words with `num` syllables
Generates an array of words with ` num ` syllables
def sylLine num
  return [] unless num > 0
  n = rand [7,num].min
  return sylLine(num - n - 1) << [$dict[n].sample] 
end
def sylLine num return [ ] unless num > 0 n = rand [ 7 , num ] . min return sylLine ( num - n - 1 ) << [ $dict [ n ] . sample ] end
Generates an array of words with `num` syllables
Generates an array of words with ` num ` syllables
num
<not_specific>