Each participant receives a range of numbers proportional to the tokens contributed. For example, if a participant contributes 2,000 tokens out of a total pool of 10,000 tokens, their number range will be from 1 to 2,000.
Winner Selection Closing Token Contributions:After a certain period, token contributions are closed, and the winner selection process begins.
Requesting a Random Number:The contract requests a random number from the Pyth Network.
Determining the Winners:Random numbers (winning numbers) are generated from the total pool of tokens. These numbers are matched against the participants' number ranges to determine the winners.