octdec

(PHP 4, PHP 5, PHP 7) Octal to decimal number octdec ( string $octal_string ) Returns the decimal equivalent of the octal number represented by the octal_string argument. Parameters: octal_string The octal string to convert Returns: The decimal representation of octal_string Notes: The functi

mt_srand

(PHP 4, PHP 5, PHP 7) Seed the better random number generator void mt_srand ([ int $seed ] ) Seeds the random number generator with seed or with a random value if no seed is given. Note: There is no need to seed the random number generator with srand() or mt_srand() as this is done automatically. Parameters: seed An optional seed value Returns:

mt_rand

(PHP 4, PHP 5, PHP 7) Generate a better random value int mt_rand ( void ) int mt_rand ( int $min , int $max ) Many random number generators of older libcs have dubious or unknown characteristics and are slow. By default, PHP uses the libc random number generator with the rand() function. The mt_rand() function is a drop-in replacement for this. It uses a random number generator with known characteristics using the » Mersenn

mt_getrandmax

(PHP 4, PHP 5, PHP 7) Show largest possible random value int mt_getrandmax ( void ) Returns the maximum value that can be returned by a call to mt_rand(). Returns: Returns the maximum random value returned by a call to mt_rand() without arguments, which is the maximum value that can be used for its max parameter without the result being scaled up (and therefore less random).

min

(PHP 4, PHP 5, PHP 7) Find lowest value mixed min ( array $values ) mixed min ( mixed $value1 , mixed $value2 [, mixed $... ] ) If the first and only parameter is an array, min() returns the lowest value in that array. If at least two parameters are provided, min() returns the smallest of these values. Note: Values of different types will be compared using the standard comparison rules. For instance, a non-numeric stri

max

(PHP 4, PHP 5, PHP 7) Find highest value mixed max ( array $values ) mixed max ( mixed $value1 , mixed $value2 [, mixed $... ] ) If the first and only parameter is an array, max() returns the highest value in that array. If at least two parameters are provided, max() returns the biggest of these values. Note: Values of different types will be compared using the standard comparison rules. For instance, a non-numeric str

log

(PHP 4, PHP 5, PHP 7) Natural logarithm float log ( float $arg [, float $base = M_E ] ) If the optional base parameter is specified, log() returns logbasearg, otherwise log() returns the natural logarithm of arg. Parameters: arg The value to calculate the logarithm for base The optional logarithmic base to use (defaults to 'e' and so t

log1p

(PHP 4 >= 4.1.0, PHP 5, PHP 7) Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero float log1p ( float $number ) log1p() returns log(1 + number) computed in a way that is accurate even when the value of number is close to zero. log() might only return log(1) in this case due to lack of precision. Parameters: number

log10

(PHP 4, PHP 5, PHP 7) Base-10 logarithm float log10 ( float $arg ) Returns the base-10 logarithm of arg. Parameters: arg The argument to process Returns: The base-10 logarithm of arg See also: log() -

lcg_value

(PHP 4, PHP 5, PHP 7) Combined linear congruential generator 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. Returns: A pseudo random float value in the range of (0, 1)