Hi, I did mine this way. I set up variables for random x and random y.
When the goal was scored , I set a random angle for x and y between certain values. So when the ball spawned after scoring it set off again at that random angle.
Hope this helps
*tried uploading a pic for you, but doesn't seem to be working