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

stats_rand_gen_normal

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Generates a single random deviate from a normal distribution

Description

stats_rand_gen_normal(float $av, float $sd): float

Returns a random deviate from the normal distribution with mean, av, and standard deviation, sd.

Parameters

av

The mean of the normal distribution

sd

The standard deviation of the normal distribution

Return Values

A random deviate

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