Returns a pseudorandom number in the range (0, 1):
<?phpecho lcg_value();?>The lcg_value() function returns a pseudo-random number in the range (0, 1).
lcg_value();
Return value: | A pseudorandom floating point value in the range (0, 1). |
---|---|
Return type: | Float |
PHP version: | 4+ |