A lottery is a drawing in which participants pay a small sum of money for…