Well not sure about random...But...
What you do is make the target that you want to be shot at aka a wooden person maybe with a target on it.
Anyway select it and click tools, tie to entity and choose func_tracktrain.
What you have to do is make a few path_corners and have the train follow these paths via a trigger.
For more detail google your question and it'll come up a lot.