By using ERC20 tokens on an EVM-compatible public blockchain to play the lottery Lotteries can be conducted at low cost, with strict privacy, high return rates, and traceability guaranteed, without having to go through a lottery management organization. Winners are determined by randomly generated numbers on the blockchain.
How do you think lottery contract?
smart contract code
whitepaper
https://whitepaper.foxlottery.org/en.html