Five men were wounded late Thursday when a pair of gunmen opened fire on a craps game in the courtyard of a garden apartment complex in South Philadelphia’s Queen Village section, police said.

None of the injuries was life-threatening, police said.

Acting Police Commissioner Christine M. Coulter said a group of men was gambling with dice in the courtyard when two men got out of a car and opened fire about 11:55 p.m. at Fifth and Carpenter Streets.

Someone in the courtyard also apparently fired back, Coulter said, adding that at least 17 shots were fired.

She said real-time crime video supported the victims’ accounts that nothing preceded the shooting and that the gunmen just got out of the car and started shooting.

The victims, ages 19 to 57, were taken to hospitals for injuries that included gunshot wounds to the arms and legs.