Classes have resumed at York University after two students suffered non-life threatening injuries in a shooting at the school's north-west campus.

Toronto police said the shooting took place in one of the school's food court areas just before 11 p.m. Thursday night.

Const. Victor Kwong said that one woman was shot in the leg and another woman was hit by shrapnel. Both victims were taken to hospital.

Police said they don't think there were any intended targets. They believe the incident may have occurred by accident, when a young man with a gun was running through the area, CTV Toronto's Tamara Cherry reported from the scene.

Officers are now looking for a male suspect who was seen fleeing the area on foot.

The shooting prompted a lockdown on the university campus, located at 4700 Keele St. The lockdown was lifted just before 1 a.m.

The university's president and vice-chancellor, Mamdouh Shoukri, said his thoughts were with the two victims, who he identified as students.

"Our immediate focus is on supporting the two students and their families, and in providing counselling support for York community members," Shoukri said in a statement released Friday. "Senior university representatives have been with the victims at the hospital, and I am appreciative to hear that both are receiving the treatment they need."

He said the school is co-operating with police in the investigation and has taken measures to enhance campus safety. These include increasing security patrols and using the Toronto Police Service in the patrols.

But the shooting has shocked some York students.

Esther Klein said no one should be carrying a gun on campus.

"I don't even know why he would be holding a gun and have that in his possession. That's absolutely not acceptable in the first place," Klein told CTV Toronto.

But another male student said he wasn’t surprised to hear of the shooting. He said the incident is just one of a number of crimes that have taken place at York.

"Armed robbery, assault, sexual assault … now there's a shooting," he said.

Klein said that on average she receives a couple of alerts a week from the school about crime on campus.

"This morning my mom was telling me how she just doesn't understand how I could be going to a university like that," she said.

Anyone who witnessed the shooting or who has any information about the case is asked to contact police at 416-808-3100. Tips can be left anonymously at Crime Stoppers at 416-222-8477 or online at www.222tips.com.

With a report from CTV Toronto's Tamara Cherry