A court sentenced a man to 28 years in prison on Friday for randomly killing a woman in 2006 in a tunnel in Kawasaki.