PHP: lcg_value - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

log10 is_nan

Last updated: Fri, 26 Jan 2007

view this page in

# lcg_value

(PHP 4, PHP 5)

lcg_value -- Combined linear congruential generator

## Description

float lcg_value ( void )

lcg_value() returns a pseudo random number in the range of (0, 1). The function combines two CGs with periods of 2^31 - 85 and 2^31 - 249. The period of this function is equal to the product of both primes.

add a note User Contributed Notes
lcg_value
There are no user contributed notes for this page.
log10 is_nan

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST