Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def emoji_pyramid_generator(size, emojis = %w[:kappa: :pogchamp: :extraspicy: :lul:])
- string = ""
- size.times { |n| string += Array.new(n) { emojis.sample }.join(" ") + "\n" }
- size.times { |n| string += Array.new(size - n) { emojis.sample }.join(" ") + "\n" }
- string
- end
Add Comment
Please, Sign In to add comment