public function isEnabled(
        float $percentage,
        string $value = "",
        string $salt = ""
    ): bool
    {
        if ($percentage <= 0) {
            return false;
        }

        if ($percentage >= 100) {
            return true;
        }

        if ($value === "" && $salt === "") {
            $max = mt_getrandmax() + 1;
            $random = mt_rand() / $max;
            return ($random < $percentage / 100);
        }

        $hash = crc32($value.$salt);
        $mod = $hash % 10000;
        return ($mod < $percentage * 100);
    }