lib/ffaker/lorem_kr.rb in ffaker-2.0.0 vs lib/ffaker/lorem_kr.rb in ffaker-2.1.0
- old
+ new
@@ -8,10 +8,10 @@
def word
WORDS.sample
end
def words(num = 3)
- WORDS.random_pick(num)
+ WORDS.sample(num)
end
def sentence(word_count = 4)
"#{words(word_count + rand(5) + 1).join(' ')}."
end