Possible Duplicate:
Random Float in php
Is it possible to create a random float number between 0 and 1.0 e.g 0.4, 0.8 etc. I used rand but it only accepts integers.
Possible Duplicate:
Random Float in php
Is it possible to create a random float number between 0 and 1.0 e.g 0.4, 0.8 etc. I used rand but it only accepts integers.
Avoid the
rand()
function, since it usually depends on the platform's Crand()
implementation, generally creating numbers with a very simple pattern. See this comment on php.net