A lottery is a gambling game in which players pay a small sum of money…