In a random and unprovoked attack, a man “on a bit of a rampage” allegedly stabbed three pedestrians near Church and Carlton Sts. Sunday morning, said police.

Det. Phil Hibbeln told reporters at the scene the man allegedly attacked four people with a knife near Maple Leaf Gardens in four separate incidents. Three of the victims were taken to St. Michael’s Hospital in serious but non-life-threatening condition.

The fourth person, a woman, was unhurt, Hibbeln said.

“He went for the fourth person but he wasn’t successful,” he said.

Toronto police have charged a man with four counts of attempted murder.

Toronto Paramedic Services said the three injured victims include a woman in her 20s and men in their 40s and 20s were taken to hospital shortly after 8:30 a.m.

The three taken to hospital each had single stab wounds to their torsos.

One victim took shelter in Ryerson University’s nearby Mattamy Athletic Centre before paramedics arrived, according to a Ryerson spokesperson.

The spokesperson could not confirm or deny if the victims were Ryerson students, citing confidentiality rules.

According to police, the stabbings happened along Carlton St., between Church St. and Yonge St. around 8:30 a.m.

Police arrested a man shortly after near Yonge and Carlton Sts. without incident.

Shawn O’Neill, 62, faces charges including four counts of attempted murder, four counts of aggravated assault, six counts of weapons dangerous and six counts of assault with a weapon.

All 20 charges were related to the Sunday incident, said police.