An Alexandria judge, after a psychiatrist testified that Randy Lee Breer was driven by sometimes uncontrollable sexual "cravings," sentenced the Dale City carpenter yesterday to 50 years in prison for assaulting a 19-year-old Alexandria woman last year.

Circuit Judge Alfred D. Swersky sentenced Breer to 20 years for abduction and 30 years for forcible sodomy, adding that Breer be sent to a prison where he can receive psychological treatment.

The sentence resolves a series of cases against Breer, who was sentenced in Arlington last month to seven consecutive life terms for attacks on two girls there. A judge in Loudoun County sentenced Breer to four more life terms last week for charges resulting from the rape of an 11-year-old Sterling Park girl.

Despite the heavy sentences, Breer, 30, will be eligible for parole in 20 years. He had been charged with four rapes in the three jurisdictions, but Alexandria and Arlington prosecutors dropped one rape charge each as part of Breer's plea bargain.

Had Breer been convicted of three rapes, he would have been ineligible for parole.

Breer had been named by Fairfax County police as a prime suspect in the disappearance and slaying last July of 10-year-old Rosie Gordon, but charges were never brought.

Fred Berlin, a psychiatrist called to the stand by Breer's defense attorney in Alexandria yesterday, said Breer "was afflicted with an abnormal sexual orientation and had very little attraction to adult females, or adult males for that matter."

Berlin said three examinations determined that Breer suffered from "craving disorders similar to alcoholism" and that "for Mr. Breer, children are in a sense like that bottle of alcohol" for an alcoholic.

The psychiatrist argued that if Breer did not receive extensive psychological counseling and drugs to lessen his sexual urge, he would almost certainly remain a threat to society if let out of prison.

Berlin also said that Breer desired such counseling. "I think he's genuinely perplexed over why he experiences these desires," Berlin said.

Andy Meltz, Breer's attorney, argued that his client "knew what he was doing was wrong, but couldn't stop himself from doing these horrible acts."

In asking that Breer receive treatment, Meltz described him as "a very caring and sensitive individual . . . who feels horrible about the crimes he has committed."

Assistant Commonwealth's Attorney Krista Boucher acknowledged some futility in yesterday's proceedings, noting that Breer's sentence would have little or no impact on his eligibility for parole. However, Boucher said the community was entitled to expect the toughest possible penalty for Breer.