Home > PHP > Function > Statistics > stats_rand_gen_ibinomial()

stats_rand_gen_ibinomial()

stats_rand_gen_ibinomial - Generates a single random deviate from a binomial distribution whose number of trials is "n" (n >= 0) and whose probability of an event in each trial is "pp" ([0;1]). Method : algorithm BTPE

Syntax

int stats_rand_gen_ibinomial (int $n, float $pp)

Arguments

  • n
  • pp

Description

Version

PHP PECL stats >= 1.0.0

Return value