Both The Phantom of Liberty (Luis Buñuel, 1974) and God Told Me To (Larry Cohen, 1976) feature a scene in which a sniper shoots innocent strangers from a highrise. Both scenes are probably inspired by Charles Whitman‘s spree killing in Texas in 1966.
In Buñuel’s film, the sniper randomly kills people in the Parisian streets below.
Phantom of Liberty as featured in Blixa Bargeld’s cover of “Soul Desert“, sniper scene starts at 0:42
In Cohen’s film, the sniper is perched on a water tower in New York and opens fire on the crowded streets below, killing fifteen pedestrians.
God Told Me To, the sniper scene starts at 1:26
See stranger killing by snipers in seventies cinema.