Being convicted is not a bar to winning the lottery. You lose your voting rights and cannot possess a gun. But you can play the lottery. Congrats.
This is not intended as legal advice. It is only provided for educational purposes and cannot be relied upon as legal advice. Further no attorney client relationship is or has been formed by answering this question.