用途Array#product:
Array#product
alpha_numerics = ('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a alpha_numerics .product(alpha_numerics, alpha_numerics) .map { |triplet| triplet.join('') }