php8.5
Home/ Manual/ stats / functions/ stats_rand_gen_exponential

stats_rand_gen_exponential

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Generates a random deviate from the exponential distribution

Description

stats_rand_gen_exponential(float $av): float

Returns a random deviate from the exponential distribution of which the scale is av.

Parameters

av

The scale parameter

Return Values

A random deviate

Source: reference/stats/functions/stats-rand-gen-exponential.xml · from the official PHP manual (php/doc-en)