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

stats_rand_gen_funiform

PHP function Edit on GitHub ✎

(PECL stats >= 1.0.0)

Generates uniform float between low (exclusive) and high (exclusive)

Description

stats_rand_gen_funiform(float $low, float $high): float

Returns a random deviate from the uniform distribution from low to high.

Parameters

low

The lower bound (exclusive)

high

The upper bound (exclusive)

Return Values

A random deviate

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