Don't run after the dog, because it's probably going to run away from you. If it's your dog and it likes you, one of the best things you can do is actually to run in the other direction while whistling. Make it seem like you're having a good time so the dog thinks it's a game of "Chase My Human."