Home > PHP > Function > Statistics > stats_rand_gen_f()

stats_rand_gen_f()

stats_rand_gen_f - Generates a random deviate

Syntax

float stats_rand_gen_f (float $dfn, float $dfd)

Arguments

  • dfn
  • dfd

Description

Generates a random deviate from the F (variance ratio) distribution with "dfn" degrees of freedom in the numerator and "dfd" degrees of freedom in the denominator. Method : directly generates ratio of chisquare variates.

Version

PHP PECL stats >= 1.0.0

Return value