在线文档教程
PHP
数学 | Mathematics

stats_rand_ranf

stats_rand_ranf

(PECL stats >= 1.0.0)

stats_rand_ranf — Generates a random floating point number between 0 and 1

Description

float stats_rand_ranf ( void )

Returns a random floating point number from a uniform distribution between 0 (exclusive) and 1 (exclusive).

Return Values

A random floating point number

← stats_rand_phrase_to_seeds

stats_rand_setall →

© 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-ranf.php