def companyname
      num = rand(5)
      if num == 0
        num = 1
      end
      final = num.times.collect { @@lastnames.rand.capitalize }

      if final.count == 1
        "#{final.first} #{@@company_types.rand}, #{@@incorporation_types.rand}"
      else
        incorporation_type = rand(17) % 2 == 0 ? @@incorporation_types.rand : nil
        company_type = rand(17) % 2 == 0 ? @@company_types.rand : nil
        trailer = company_type.nil? ? "" : " #{company_type}"
        trailer << ", #{incorporation_type}" unless incorporation_type.nil?
        "#{final[0..-1].join(', ')} & #{final.last}#{trailer}"
      end
    end
def companyname
      num = rand(5)
      if num == 0
        num = 1
      end
      final = num.times.collect { @@lastnames.rand.capitalize }

      if final.count == 1
        "#{final.first} #{@@company_types.rand}, #{@@incorporation_types.rand}"
      else
        incorporation_type = rand(17) % 2 == 0 ? @@incorporation_types.rand : nil
        company_type = rand(17) % 2 == 0 ? @@company_types.rand : nil
        trailer = company_type.nil? ? "" : " #{company_type}"
        trailer << ", #{incorporation_type}" unless incorporation_type.nil?
        "#{final[0..-1].join(', ')} & #{final.last}#{trailer}"
      end
    end
Returns a random company name

 >> Random.company_name

 "Harris & Thomas"