|
|
PHP lcg_value() - Math Functions
|
Tutorials » Php »
|
Topic |
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.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|