A woman who stabbed a random shopper to death in the ice cream aisle of a supermarket was sentenced Monday to life in prison.

Connor MacCalister had told police she was angry with life and had gone to the store to kill "several random people." According to court records, she acknowledged being "off (her) meds" when she killed 59-year-old Wendy Boudreau in August at a Shaw's supermarket in Saco, where they both lived.

MacCalister, 31, entered her guilty plea in October over the objection of her lawyer, who wanted to use an insanity defense.

She was sentenced in York County Superior Court in Alfred.

Last month, her attorney, Robert LeBrasseur, said MacCalister wanted to plead guilty to "make this easier on Mrs. Boudreau's family and friends." The guilty plea required LeBrasseur to argue in favor of a life sentence.

The sentencing brings an end to a case that shocked the quiet seaside city and led to public expressions of grief, including a well-attended funeral at Saco's Thornton Academy, where Boudreau had worked in the alumni office.

Assistant Attorney General Leane Zainea said MacCalister's initial plan was to kill one person, take another hostage and then kill the hostage when police arrived. Zainea said MacCalister had been planning the attack for a month.

There was no indication that Boudreau and MacCalister knew each other, and the affidavit said MacCalister claimed Boudreau had "looked at me funny" at the scene.

MacCalister is a transgender man who was born Tanisha Hopkins. She asked to be referred to as a woman in her recent court appearances. An exam report stated that she wants to be placed in a female jail and that she has stopped taking testosterone.