TOPIC 22/2224 MINNOT STARTED

Testing games of chance: random draws, fairness and payouts without special tools

Test a random draw with a pinned result for the rules, a count of many draws for the odds, and a log for disputes. A spreadsheet is enough to start.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: drawing marbles from a bag. A bag holds eighty plain marbles, fifteen blue ones and five gold ones. You shake it and draw one, then put it back. One draw gives weak evidence about the bag; a few observations usually cannot estimate rare chances precisely. A hundred draws start to show the mix. A larger sample can estimate the mix more precisely, but even a fair sample may differ from or equal its expected counts.

Daily List is a to-do list app. When Lily finishes a list, the app shows a Lucky tip card. Most cards are Plain tips. Some are Bonus tips. A few are Gold tips, and a Gold tip gives one free day of the paid plan. Nina, the product owner, has written the odds and the payout rules.

Tom, the tester, cannot test this by clicking and hoping. Seeing no Gold in twenty tries is compatible with a five-percent chance and is weak evidence, not proof that Gold is absent. So he treats the draw as a bag. He checks the rules around the draw, the mix of the draws, and the record of the draws.

For the rules, he asks Leo, the developer, for a way to pin the result. For the mix, he counts many draws in a spreadsheet. For the record, he checks that every draw is written down once.

The picture has a limit. A real bag is made of marbles you can see. In the app, a short piece of code is the bag, and a fault in it can hide for a long time.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

Separate three questions: do the payout rules work for a chosen result, do observed frequencies fit the stated odds, and can the history explain what happened? A single lucky or unlucky user does not answer all three.

PLAIN WORDS · 2 in this section
payout
money paid out to the person receiving it
spreadsheet
a grid of rows and columns holding numbers or text

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Test the rules of a random draw with a pinned result, check the odds with a count, and keep a draw record.

  1. Pin a result and test the rules
  2. Run many draws
  3. Count and compare with the band
  4. Check refresh and payouts
  5. Read the draw log
Testing a random draw

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The bag with eighty plain, fifteen blue and five gold marblesThe stated odds of the draw
Drawing one marble and putting it backOne draw of the Lucky tip
Setting a marble aside by handPinning a result with random source control
Counting the marbles after many drawsThe draw count check
The notebook of every drawThe draw log

WHERE THIS PICTURE STOPS

  • A real bag is made of marbles you can see. The app's bag is code, and a fault in it can hide.
  • A hand draw cannot be replayed by another person. A phone draw can be replayed if it is not kept on the server.
  • Even a marble draw can be physically biased; a generator also needs evidence about distribution, independence and predictability.
  • A fair count can equal its expectation exactly; preplan power and repeated-test rules rather than rerunning until a pass.

HOOK

Pin the dice, count the rolls, keep the receipts.

REMEMBER IT THIS WAY

A sequence: the real steps, in order.

State the odds; control outcomes for exact rule tests; separately run the actual generator against a predeclared statistical design.

What each part of the trick stands for
In the trickWhat it stands for
Bag with eighty plain, fifteen blue and five gold marblesThe stated odds of the draw
Setting a marble aside by handPinning a result with random source control
Counting the marbles after many drawsThe draw count check

A fair count can equal its expectation exactly; preplan power and repeated-test rules rather than rerunning until a pass.

TELL A FRIEND

A random draw is like drawing marbles from a bag. Pin a marble to test the rules, count many draws to check the mix, and keep a notebook of every draw.

OFTEN MIXED UP WITH Designing test data. That lesson chooses on purpose. This lesson tests a feature where the data is picked by chance. The tester takes control of the chance, counts many draws, and keeps a record.

Sources & standards — 4 sources
  1. Market practice

    e-Handbook §1.3.6.6.18 — Binomial Distribution ↗ — NIST · Actual complete short distribution/statistics page reviewed: fixed per-trial probability, mean np and count SD sqrt(np*(1-p)). Count-band screening differs from estimation intervals, independence/unpredictability and fairness assurance. Original plot bytes not retrieved in this lane; do not fabricate an official figure.

    Actual complete short distribution/statistics page reviewed: fixed per-trial probability, mean np and count SD sqrt(np*(1-p)). Count-band screening differs from estimation intervals, independence/unpredictability and fairness assurance. Original plot bytes not retrieved in this lane; do not fabricate an official figure. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  2. Market practice

    e-Handbook of Statistical Methods — 7.2.4.1 Confidence intervals ↗ — National Institute of Standards and Technology (NIST) and SEMATECH · Actual complete §7.2.4.1 reviewed: Wilson intervals and exact small-sample binomial methods, including historical terminology correction. An estimate interval is not identical to a hypothesised count-screening band; approximations require justification.

    Actualcomplete§7.2.4.1reviewed:Wilsonintervalandexactsmallsamplebinomialmethods,includinghistoricalterminologycorrection. Estimateintervalisnotidenticaltoahypothesisedcountscreenband; approximationrequiresjustification. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  3. Market practice

    GLI-19 Interactive Gaming Systems, version 3.0 ↗ — Gaming Laboratories International (GLI) · Actual front matter/introduction and relevant §§3.2–3.3 RNG distribution, independence and code-review excerpts reviewed: v3.0, 17 July 2020, not a 2024 revision. Jurisdiction and independent-laboratory scope matter. All rights reserved; no commercial figure-copying grant inferred.

    Actualfrontmatter/introductionand§§3.2–3.3relevantRNGdistribution,independence,code-reviewexcerptreviewed:v3.0,17July2020,not2024revision. Jurisdiction/independentlab scope; sourcecopyrightallrightsreserved,notcommercialfiguregrant. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  4. Market practice

    A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications (NIST SP 800-22 Revision 1a) ↗ — National Institute of Standards and Technology (NIST) · Actual publisher abstract/status reviewed: SP 800-22 r1a, April 2010, and 19 April 2022 revision-planning note. Statistical tests do not certify generator suitability or replace cryptanalysis. Not a review of the full test-suite PDF.

    Actualpublisherabstract/statusreviewed:SP800-22r1aApril2010and19April2022revisionplanningnote. Statisticaltests do notcertifygeneratorappropriateness or replacecryptanalysis. Notfulltest-suitePDFreview. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    e-Handbook §1.3.6.6.18 — Binomial Distribution ↗ — NIST · Actual complete short distribution/statistics page reviewed: fixed per-trial probability, mean np and count SD sqrt(np*(1-p)). Count-band screening differs from estimation intervals, independence/unpredictability and fairness assurance. Original plot bytes not retrieved in this lane; do not fabricate an official figure.

    Actual complete short distribution/statistics page reviewed: fixed per-trial probability, mean np and count SD sqrt(np*(1-p)). Count-band screening differs from estimation intervals, independence/unpredictability and fairness assurance. Original plot bytes not retrieved in this lane; do not fabricate an official figure. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  2. Market practice

    e-Handbook of Statistical Methods — 7.2.4.1 Confidence intervals ↗ — National Institute of Standards and Technology (NIST) and SEMATECH · Actual complete §7.2.4.1 reviewed: Wilson intervals and exact small-sample binomial methods, including historical terminology correction. An estimate interval is not identical to a hypothesised count-screening band; approximations require justification.

    Actualcomplete§7.2.4.1reviewed:Wilsonintervalandexactsmallsamplebinomialmethods,includinghistoricalterminologycorrection. Estimateintervalisnotidenticaltoahypothesisedcountscreenband; approximationrequiresjustification. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  3. Market practice

    GLI-19 Interactive Gaming Systems, version 3.0 ↗ — Gaming Laboratories International (GLI) · Actual front matter/introduction and relevant §§3.2–3.3 RNG distribution, independence and code-review excerpts reviewed: v3.0, 17 July 2020, not a 2024 revision. Jurisdiction and independent-laboratory scope matter. All rights reserved; no commercial figure-copying grant inferred.

    Actualfrontmatter/introductionand§§3.2–3.3relevantRNGdistribution,independence,code-reviewexcerptreviewed:v3.0,17July2020,not2024revision. Jurisdiction/independentlab scope; sourcecopyrightallrightsreserved,notcommercialfiguregrant. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

  4. Market practice

    A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications (NIST SP 800-22 Revision 1a) ↗ — National Institute of Standards and Technology (NIST) · Actual publisher abstract/status reviewed: SP 800-22 r1a, April 2010, and 19 April 2022 revision-planning note. Statistical tests do not certify generator suitability or replace cryptanalysis. Not a review of the full test-suite PDF.

    Actualpublisherabstract/statusreviewed:SP800-22r1aApril2010and19April2022revisionplanningnote. Statisticaltests do notcertifygeneratorappropriateness or replacecryptanalysis. Notfulltest-suitePDFreview. · Checked 2026-11-06

    Actual primary page/document sections opened and compared in the Industry Contexts audit on 6 November 2026; scope and section-reading limits are documented in docs/research/v43-testing-industry-contexts-progress-20261106.md. Paraphrase teaching facts; a public page is not itself permission to republish proprietary source figures.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.