This ruby script generates valid Estonian male and female identity codes, birth year between 1950 - 1999. This means that the generated person will always be an adult (18+). Pull requests are welcome (this script should probably be a gem).
You need ruby to run this script. Tested with ruby 2.4.1
.
cd ~/your-preferred-directory
git clone [email protected]:mlensment/ikgen.git
cd ikgen
ruby ik.rb
Additionally you may create an alias and add it to your .bashrc
/ .zshrc
echo 'alias ikgen="ruby ~/your-preferred-directory/ikgen/ik.rb"' >> ~/.zshrc
source ~/.zshrc
ikgen