To get slightly more interesting/realistic behaviour, you might want to read up on Craig Reynolds' "Autonomous Steering Behaviours" - red3d.com/cwr/steer
For this example, what you're describing is the "Flee" behaviour, which applies a steering force (an acceleration, if you prefer) in the opposite direction from the direction to the player. However, I strongly encourage you to read the other behaviours too.