How does one generate a random float between 0 and 1 in PHP?
I\'m looking for the PHP\'s equivalent to Java\'s Math.random().
Math.random()
what about:
echo (float)('0.' . rand(0,99999));
would probably work fine... hope it helps you.