alternator causing bad idle??

i do have an am radio. it sounds great when the car is off but when its running it sounds terrible and wont keep a signal. tommorow im gonna check all connections and then take it and get the alternator tested. just figured alternator cause it all works fine if the access are off. thanks