I want to generate a random number like 0.23, 0.88,0.000236. This number must be any float between 0 and 1. Does any one know how to do this in php?
cheers ashay
you could produce a random number between 0 and - f.ex. - 1000000 - and then divide the result by 1000000 to get a float result, that HAS to be 0 <= result <= 1