在线文档教程
PHP
数学 | Mathematics

stats_rand_gen_normal

stats_rand_gen_normal

(PECL stats >= 1.0.0)

stats_rand_gen_normal — Generates a single random deviate from a normal distribution

Description

float stats_rand_gen_normal ( float $av , float $sd )

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

← stats_rand_gen_noncentral_t

stats_rand_gen_t →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/function.stats-rand-gen-normal.php