|laziness, impatience, and hubris|
Re: rand() precision low, looking for a fast way to get high precision rand float?by bart (Canon)
|on Oct 31, 2012 at 19:53 UTC||Need Help??|
On Windows, the random number has only 15 bits. That means that if you multiply the results with 32768, the outcome will always be an integer.
If you want something better, at least in that regard, you could pick Math::Random::MT. It's pretty fast, too.