How to use lcg value in PHP

This article describe about lcg_value() Function in PHP.
  • 1587

lcg_value() Function

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

Syntax

lcg_value()

 

Example

 

<html>
<body>
<?php
echo lcg_value();
?>
</body>
</html>

 

Output


lcgvaluephp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.