Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed Jun 11, 2018
1 parent ab426d7 commit dc4d3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faker/lorem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def paragraph_by_chars(chars = 256, supplemental = false)
end

def question(word_count = 4, supplemental = false, random_words_to_add = 0)
words(word_count + rand(random_words_to_add.to_i).to_i, supplemental).join(' ').capitalize + locale_question_mark
words(word_count + rand(random_words_to_add), supplemental).join(' ').capitalize + locale_question_mark
end

def questions(question_count = 3, supplemental = false)
Expand Down

0 comments on commit dc4d3d2

Please sign in to comment.