Skip to content

voutasaurus/birthday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8e4b9dd · Dec 31, 2016

History

12 Commits
May 27, 2016
Dec 31, 2016
May 28, 2016
May 28, 2016

Repository files navigation

birthday Build Status

Calculator for probability of collision given h holes and p pigeons

Installation

$ go get github.com/voutasaurus/birthday

Usage

$ birthday -h $[3000*1000] -p 4000
93.05%

N.B. The $[3000*1000] is bash syntax. -h and -p both expect an integer.

Contributions

Issues and PRs welcome.