Services webmasters
Partenaires
Jeux concours gratuits
 
is_nan
<<<
lcg_value log
>>>

7.50 Mathématiques
7 Index des fonctions
 Manuel PHP

Introduction
Pré-requis
Installation
Configuration à l'exécution
Types de ressources
Constantes prédefinies
abs
acos
acosh
asin
asinh
atan
atan2
atanh
base_convert
bindec
ceil
cos
cosh
decbin
dechex
decoct
deg2rad
exp
expm1
floor
fmod
getrandmax
hexdec
hypot
is_finite
is_infinite
is_nan
->lcg_value
log
log10
log1p
max
min
mt_getrandmax
mt_rand
mt_srand
octdec
pi
pow
rad2deg
rand
round
sin
sinh
sqrt
srand
tan
tanh

7.50.34 lcg_value() Générateur de congruence combinée linéaire

[ Exemples avec lcg_value ]   PHP 4

float  lcg_value ( void )

lcg_value retourne un nombre pseudo-aléatoire, compris entre 0 et 1. lcg_value combine deux générateurs de congruence, de périodes respectives 2^31 - 85 et 2^31 - 249 . La période de cette fonction est le produit de ces deux nombres premiers (soit (2^31 - 85)*(2^31 - 249) ).

<< lcg_value >>
is_nan Mathématiques log
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -