PHP.nl

stats_rand_gen_ibinomial_negative

stats_rand_gen_ibinomial_negative

Generates a random deviate from the negative binomial distribution

int **stats_rand_gen_ibinomial_negative** int $n float $p

Returns a random deviate from a negative binomial distribution where the number of success is and the success rate is . n``p

nThe number of success

pThe success rate

A random deviate, which is the number of failure.