how to random with animation images

Hello, I'm new here.
Can anyone help me with random and animation?
An actor in the scene will be stop at frame 1.
It will randomly have animation and can be clicked too.
If it's clicked, it'll change itself to "dead" animation and then go back to frame 1 again.
-------------------------------------------------------------------------------
I create variable "timer >real" in the actor. and then put this code in the actor.
Rule
>> Attribute > self.Time= self.timer+random(1,6)
Timer >
For 3 seconds
Animate>
13 frames of animation by speed 30fps.
---------------------------------------------------------------------------------
Can anyone help me with random and animation?
An actor in the scene will be stop at frame 1.
It will randomly have animation and can be clicked too.
If it's clicked, it'll change itself to "dead" animation and then go back to frame 1 again.
-------------------------------------------------------------------------------
I create variable "timer >real" in the actor. and then put this code in the actor.
Rule
>> Attribute > self.Time= self.timer+random(1,6)
Timer >
For 3 seconds
Animate>
13 frames of animation by speed 30fps.
---------------------------------------------------------------------------------
Comments
So my animation jump to start over again.
How to force the animation to finish before able to do the other thing.
When my animation is playing,if I touch the actor, it'll jump to the other behavior.