The raging brute who used a black claw hammer to attack four strangers — including a young female cop — in Manhattan in 2015 couldn’t muster even an apology to his victims as he was sentenced to 22 years in prison Wednesday.

Justice Michael Obus asked defendant David Baril, 32, whether he had anything to say.

“Nah,” he answered in Manhattan Supreme Court.

Baril previously copped to attempted aggravated assault on a police officer and three counts of second-degree assault as part of a plea.

Assistant District Attorney Courtney Groves described Baril’s “brief but substantial reign of terror” that began May 11, 2015.

The hammer-wielding hobo admitted that he first struck a 20-year-old man in the back of the head near West 35th Street and Sixth Avenue. Baril then made his way south to Union Square Park, where he randomly whacked in the head a 28-year-old woman seated on a bench and bashed a 33-year-old woman near West 17th Street.

Two days later, eagle-eyed Police Officer Lauren O’Rourke recognized him in Hell’s Kitchen from NYPD “wanted” photos and approached him, Groves said.

The psycho lost it and chased her into a busy intersection, battering her with the hammer.

His rampage came to an end when O’Rourke’s partner, Geraldo Casaigne, shot Baril four times.

Baril’s mother, Sarah Wellington, said outside the courtroom that the prison term was too stiff given her son’s psychiatric history.

“He’s a person with mental illness for a long time, and everybody knows that,” she said.

Her son was in a wheelchair for the proceeding. The mom said he was in the wheelchair because of injuries he sustained from the shooting.

Manhattan District Attorney Cy Vance Jr. lauded the courageous cops who apprehended Baril.

“The heroic actions of two police officers brought his spree to an end,” Vance said in a statement. “I would like to thank those officers for their bravery, as well as the prosecutors in my office for bringing this defendant to justice.”