A lottery is a system of awarding prizes based on chance, especially money or goods.…