PHP Snippet Code To Generate Random Float Number

Generating a float random value in PHP is little bit tricky. Both rand() and mt_rand() will return Integer value. But sometimes you need to generate random float value, for currency or math case for examples. So i would like to share my little script to generate a Float random value.Usage:This code is free to use in any php application you like. If you like please leave me any comments, i really appreciate it. … Read more...