The Ruby Standard Library
require 'securerandom'
SecureRandom.alphanumeric(15) # => FvUMIA00NVLijK0
SecureRandom.random_number(1..1000) # => 795
SecureRandom.hex(10) # => 664bd09321b3ae235fb3
require 'time'
firework_start = Time.parse("2020-12-31 23:59:59")
firework_end = Time.parse("2021-01-01 00:09:59")
seconds = firework_end - firework_start # => 600.0
firework_start.strftime("%A") # => Thursday
firework_end.strftime("%A") # => Friday
What questions do you have?