Lets see now:

suppose the rod is broken into two lengths of xa and ya, then

xa+ya=2a

therefore:

average length = (xa+ya)/2

replacing xa+ya :

average length = (2a)/2
average length = a

QED.