making a smart Enemy AI

Hello im making a top down space shooter game and i need a script for a suicide bomber that dodges bullets. heres my script for a normal suicide bomber AI

var victim : Transform;
var speed : int = 5;
var rotationSpeed : int = 7;
var distance : int = 20;

function Update () {
    var dist = Vector3.Distance(victim.position, transform.position);

    if(dist < distance){
        target = victim;
        transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(target.position - transform.position),rotationSpeed * Time.deltaTime);
        transform.position += transform.forward * speed * Time.deltaTime;
    }
}

the bullet has a tag bullet. how can i make it dodge the bullet

You could add a longer collider to bullets (that extends in their direction of travel) and when the suicide bomber hits that collider they can take some evasive action. It's just a simple example.

The "intelligence" will come from predicting what will happen, and taking action to prevent it.