public static function getFloat(
        int $min = 0,
        int $max = 1,
        bool $forceSeed = false
    ): float {
        if($max > $min) {
            return $min + (float) self::getInt(0, -1, $forceSeed) /
                mt_getrandmax() * ($max - $min);
        } else {
            return (float) self::getInt(0, -1, $forceSeed) / mt_getrandmax();
        }
    }