What movie had a lottery where the winners to kill each other?
You're likely thinking of the movie "The Hunger Games" (2012).
In this dystopian future, children are selected through a lottery called the "Reaping" to fight to the death in a televised event known as the Hunger Games.