PHP - Manual: stats_rand_gen_ibinomial
2025-10-25
(PECL stats >= 1.0.0)
stats_rand_gen_ibinomial — Generates a random deviate from the binomial distribution
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.
nThe number of trials
ppThe probability of an event in each trial
A random deviate
官方地址:https://www.php.net/manual/en/function.stats-rand-gen-ibinomial.php