Skip to content

Instantly share code, notes, and snippets.

@jessedearing
Created September 6, 2011 14:45
Show Gist options
  • Select an option

  • Save jessedearing/1197740 to your computer and use it in GitHub Desktop.

Select an option

Save jessedearing/1197740 to your computer and use it in GitHub Desktop.
Generate a random EIN
number = lambda { return Forgery::Basic.number(:at_least => 0, :at_most => 9).to_s }
ein = "#{Forgery::Basic.number(:at_least => 1, :at_most => 9).to_s}#{number.call}-"
7.times { ein += number.call }
@cylenca1
Copy link

cylenca1 commented Jun 8, 2018

can i get an EIN for any company in usa

@somb838
Copy link

somb838 commented Sep 4, 2023

ein

@somb838
Copy link

somb838 commented Sep 4, 2023

number = lambda { return Forgery::Basic.number(:at_least => 0, :at_most => 9).to_s }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment