How a lottery can change the law