Figured some people may find use for this even though it took probably ten seconds to code.
Unsure of there's a reason I've never seen people do this, could just be because nobody needs it.
function getRandomFloat(%min, %max, %len)
{
%len = mAbs(%len);
if(%len > 5)
%len = 5;
%power = mPow(10, (%len $= "" ? 0 : %len));
%min *= %power;
%max *= %power;
return getRandom(%min, %max) / %power;
}
Usage:
getRandomFloat(%min, %max[, %len]);
Returns a random float between %min and %max, with a maximum float length of %len (Defaults to zero, maximum is five).