"He had been preparing (the shooting) for a year," Bavarian police chief Robert Heimberger told a news conference.
Chief prosecutor Thomas Steinkraus-Koch added that he did not specifically choose his victims.
"It is not the case that he deliberately selected" the people who he shot, he said.
Europe reacted in shock to the third attack on the continent in just over a week, after David Ali Sonboly went on a shooting spree at a shopping centre on Friday before turning the gun on himself.
Investigators said they saw an "obvious link" between the killings and white supremacist Anders Breivik's massacre of 77 people in Norway exactly five years earlier.
Chancellor Angela Merkel said Munich had suffered a "night of horror".