# File lib/faker/number.rb, line 40 def hexadecimal(digits) hex = "" digits.times { hex += rand(15).to_s(16) } hex end