PHP - Manual: stats_rand_gen_ibinomial
2024-12-27
(PECL stats >= 1.0.0)
stats_rand_gen_ibinomial — Generates a random deviate from the binomial distribution
$n
, float $pp
) : int
Returns a random deviate from the binomial distribution whose number of trials is n
and whose probability of an event in each trial is pp
.
n
The number of trials
pp
The probability of an event in each trial
A random deviate
官方地址:https://www.php.net/manual/en/function.stats-rand-gen-ibinomial.php