Sha256: 9e2e789299bfc41e7f95337e4e8979d3ce02c3f65f0e69724abfc9edc726d979
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
class TunecoreAnnouncer::Utils def self.random_word(size=6) c = %w(b c d f g h j k l m n p qu r s t v w x z ch cr fr nd ng nk nt ph pr rd sh sl sp st th tr lt) v = %w(a e i o u y) f, r = true, '' (size * 2).times do r << (f ? c[rand * c.size] : v[rand * v.size]) f = !f end r end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tunecore-announcer-0.1.0 | lib/tunecore-announcer/utils.rb |
tunecore-announcer-0.0.1 | lib/tunecore-announcer/utils.rb |
tunecore-announcer-0.0.2 | lib/tunecore-announcer/utils.rb |