Too Long; Didn't Read
In this tutorial we’ll be walking through building and deploying a decentralized lottery smart contract in Solidity using [Hardhat]. Anyone can choose a number 1–10,000 and buy a ticket to enter into a weekly lottery. Ticket revenue is collected into a pot in the contract. After 7 days, the contract will allow anyone to trigger the drawing. The contract will then call the [API3 QRNG[https://api3.org/QRNG] for a truly random number. The pot will be split amongst all users that chose this winning number.