A lottery is a gambling game that relies on chance and offers participants the chance…