module AlexCodebreaker class IDGenerator MIN_NUMBER = 1 MAX_NUMBER = 9_999_999_999 attr_reader :unique_id def initialize @unique_id = generate_id end private def generate_id rand(MIN_NUMBER..MAX_NUMBER) end end end