This seems to evoke strong opinions in people, not least me.
I don't like the idea of a convict winning more money than most people can imagine. However, at the end of the day, his prison sentence is what "the people" have deemed to be a sufficient exchange for the crimes he's commited. The implications of part-time releases from prison at the end of sentences is part of the burden of punishment. If "the people" have an issue with the effectiveness of the sentence, the level of repayment to society, the extent of rehabilitation or anything else, then surely it's the sentencing that needs fixing, not the law on who can win the lottery.