The teenager who shot dead nine people at a Munich shopping mall spent a year planning the rampage but selected his victims at random, officials said yesterday.