Birthday Paradox | Returns approximate number of people for a given probability ; Driver Code
< ? php function find ( $ p ) { return ceil ( sqrt ( 2 * 365 * log ( 1 / ( 1 - $ p ) ) ) ) ; } echo find ( 0.70 ) ; ? >