Each raffle will have three winning tickets that will be randomly drawn using the industry-standard "VRF" (Verifiable Random Function) by Chainlink which provides verifiable tamper-proof randomness to the raffle's smart contract.
The first ticket will be automatically drawn by the smart contract immediately after the last raffle ticket is purchased, or after the raffle's end date has been reached.
The raffle prizes depend on how many tickets have been purchased before the smart contract starts the winning tickets drawing phase.
The whole raffle tokens/coins balance will be split only between the three winning tickets` owners, the prize for each winning ticket will be a percentage of the total tokens/coins the raffle has at the point of claiming the prizes, these percentages get specified at the creation of each raffle in the smart contract, and the first winning ticket prize will always be greater than each of the other two winning tickets, and the prize for the second winning ticket will be greater than the third winning ticket.
The owners of each winning drawn ticket will have 24 hours to claim his/her ticket prize before a ticket reroll takes place to draw another winning ticket to replace the unclaimed ticket.
Once the owner of the current drawn ticket claims its prize the smart contract will automatically draw another random winning ticket until there're three winning tickets that have been drawn, and once the third winning ticket is claimed the smart contract marks the final end of this raffle for being totally claimed by three winning tickets owners.