In the past, lotteries were largely confined to physical locations, where people would purchase tickets…