Optimize Lottery