Lottery is a form of gambling in which players attempt to match numbers or symbols…