53% chance of colliding 23 birthdays in 365 days
total = 365.0 1 - (2..22).inject((total - 1) / total) { |result, n| result * (total - n)/total } => 0.5072972343239855
Recommended Posts