Calculator for probability of collision given h
holes and p
pigeons
$ go get github.com/voutasaurus/birthday
$ birthday -h $[3000*1000] -p 4000
93.05%
N.B. The $[3000*1000]
is bash syntax. -h
and -p
both expect an integer.
Issues and PRs welcome.