Actually it follows a specific pattern. If your pokemon attacks and the wild pokemon tries to run, you get a critical hit (then the wild pokemon attacks you for one damage).
The chance of the wild pokemon running is 1/3 I assume since there are 3 actions - Attack, Evade, Run.