Running is the number one thing to escape, but it is only a part of it, you usually have to navigate obstacles and may end up in a blind alley. For obstacles, it is good to practise vaulting and sliding depending on the height, and especially chainlink fences without nasty razorwire at the top, to practise scaling it fast enough that you can get to the top and be at least only at arms reach if they get to you. Of course you won't always pick the right path on the spur of the moment but if you know the area well, you can even walk or go full speed to practise some escape routes if you know them.
Another thing is that often it is just a matter of sprinting your ass off for like max 200m and then if you can scale a fence or other difficult obstacle, with aplomb, while your attacker was not prepared to do this, you can put massive distance between you. And don't write off hiding either. Sometimes you will be running past something you can get out of sight and then fall into a hole or behind a tree or climb into something that you can not be seen behind, and the attacker will likely run past and lose your trail.
Before you do anything else, escaping is always the best option. Furthermore, you should train yourself in situational awareness and places you are familar with, learn all the hiding spots and obstacles that your familiarity with can give you a few more seconds lead time. And if it is a stupid mugger or thug wanting to beat up your kind of people, sometimes simply getting yourself into a crowd of people can help, even just to a place where they are unlikely to be able to continue their attack easily while there could be 5, 10, 20 people there who will go 'hey hold up what the fuck is going on here?'.
It is better if you know where you are and your surroundings. Then you might not end up in a blind alley while running. Yes, hiding can be a good trick. Running and going to the public place can prevent the attackers for the time being. And you can get out of there.
The way you described every possible option that we have in a situation like this, that's impressive. Thank you so much @stalker.loki for your thought-provoking comment!
I only have been caught once :)