PHP lcg_value() - Math Functions

What is lcg_value Function?

Explanation

The "lcg_value()" function returns a pseudo random number in the range of 0 and 1.

Syntax:


lcg_value()

Example :


<?php
echo lcg_value();
?>
Result :

0.408212029326

In the above example the function "lcg_value" returns a random number.

PHP Topics


Ask Questions

Ask Question