Equal Chances. A Recorded Result.
Every accepted paid or free ticket has an equal chance in its draw. YTW selects from the actual eligible ticket pool, including accepted free postal entries. The paid-ticket cap is not the final pool size: if a draw has 500 paid tickets and 40 accepted free tickets, each eligible ticket has a 1-in-540 chance.
How Our Winner Selection Works
- The system checks that the scheduled draw time has arrived, postal processing is confirmed and outstanding entry checks have been resolved.
- It obtains the active ticket records for that draw, ordered by their database IDs. Each eligible ticket occupies one position. Paid and free tickets use the same selection process.
- PHP's cryptographically secure random_int() function selects one integer from zero to the number of eligible tickets minus one. The ticket at that position is selected.
- The system records the selected ticket, pool size, selected position, algorithm description and a SHA-256 fingerprint of the ordered ticket IDs. It also records the selection time on the draw and an audit event.
- The operation runs inside a database transaction with the draw record locked. If a winner has already been recorded, requesting selection again returns that same ticket rather than choosing another winner.
The generator uses the server operating system's secure randomness facilities. Admin does not supply a preferred ticket or a clock-based seed to the selection function. If secure number generation fails, the selection cannot complete successfully. A fingerprint helps check whether a particular ordered pool matches the recorded pool; it does not, by itself, prove the pool was complete or the result was independently verified.
Transparency and Verification
CAP Code Rule 8.24 requires prizes to be awarded according to the laws of chance. It requires independent selection or supervision unless the computer process produces verifiably random results. Our explanation, selection code and draw records provide material for reviewing the process. This page and its demonstration are not an independent audit, certification or regulatory endorsement.
A proper review must examine the production code, entry handling, eligible pool, access controls and retained draw evidence. An attractive animation or a balanced-looking chart cannot establish the integrity of an actual prize draw. Winner verification and prize fulfilment remain separate steps after selection.
Our Approach to Halakha and Responsible Participation
YTW's position is that a transparently administered prize draw, with an advertised prize and a genuine free postal route, should be distinguished from wagering between participants. Participation is optional; no purchase is necessary through the free route, and we do not present a chance of winning as a source of income.
This is our position, not a claim that every raffle or game of chance is permitted under Halakha. The discussion in מסכת סנהדרין (Masekhet Sanhedrin) 24b examines gambling, the basis of participants' consent and productive occupation. A random mechanism alone does not settle those questions, and the existence of a free route is not automatically a religious ruling. Anyone requiring a personal ruling should consult their rabbinic authority about the actual arrangement.
The secular, albeit legal distinction is also specific: a free draw must satisfy the applicable requirements to fall outside regulated lotteries. Calling an activity a raffle or a game of chance does not establish that distinction. Always read the draw terms, keep within the five-entry combined allowance and never spend money needed for essentials. Winning is never guaranteed.
Explore Random Selection
The demonstration below uses 500 fictional tickets. Every selection represents a separate simulated single-prize draw with a fresh, identical pool. Repeats across simulations are therefore expected. An actual YTW draw records one selected ticket and does not repeatedly redraw its winner.
The demonstration uses your browser's secure random-number generator with rejection sampling to avoid modulo bias. The production draw uses PHP's random_int() on the server. These are different generators demonstrating the same uniform-position principle. No real entries, account information, payments or prizes are involved.