Succeeds in getting piping for random attack (7)
I believe the answer is:
potshot
'random attack' is the definition.
The answer and definition can be both acts as well as being singular nouns.
Maybe there's a link between them I don't understand?
'succeeds in getting piping' is the wordplay.
'succeeds in getting' becomes 'pots' (I am not sure about this - if you are sure you should give a lot more credence to this answer).
'piping' becomes 'hot' (I've seen this in other clues).
'pots'+'hot'='POTSHOT'
'for' acts as a link.
Can you help me to learn more?
(Other definitions for potshot that I've seen before include "Unfounded criticism" , "random criticism" , "Pop" .)