Red or black
This page describes how Fair Card Drawer shuffles the 52-card deck, draws without replacement, and what the tool does not guarantee.
Shuffle and deck representation
The deck is the standard four-suit 52-card set. Reshuffle builds a fresh array and permutes it with Fisher–Yates using indices from crypto.getRandomValues.
Card identity (rank, suit, color, sort value) is fixed per card object; shuffle only changes order.
Draws without replacement
Each draw removes the requested count from the front of the remaining deck array and pushes those cards into discard and session history.
No automatic return-to-deck occurs after a draw. Only Reshuffle or Reset restores a full 52-card pool.
Concealed presentation
Concealed faces is a presentation flag. The underlying card identity is chosen at draw time; backs display until concealment is disabled.
Accessibility announcements still note that a draw occurred so non-visual users know the deck state changed.
Mini tools and storage
Red or black uses a separate fair color pick helper. High / low performs two ordinary draws and compares ace-low values for display only.
State persists under the cards namespace in localStorage on this device—there is no server-side deal archive.
Without-replacement deck model
Each draw removes cards from the active pool until Reshuffle rebuilds a full 52-card deck; mini-tools that pick color or high/low consume cards the same way ordinary draws do.
The discard pile and history list are UI aids; they are not transmitted to SBFChoice servers because deck state stays in the browser.
Shuffle quality and disclosure
Shuffles use Fisher–Yates with crypto.getRandomValues, which is appropriate for classroom fairness conversations but not a certified gaming randomness audit.
Hosts should say aloud when a deck is low or reshuffled so players do not assume infinite replacement.
Deck composition assumptions
Standard 52-card draws exclude jokers unless you add them manually to house rules outside the tool.
Virtual reshuffles do not simulate imperfect riffling; players needing physical randomness should cut a real deck.
Worked example: ten draws
Start with 52 cards in deck. Draw one card five times without reshuffle: the in-deck counter moves 52 → 47. Discard and history each list five distinct cards that cannot reappear until Reshuffle.
Set Cards per draw to 2 and press Draw card(s) once: two more cards leave the deck (45 remain). High / low mini-tool would also remove two cards the same way.
If you need a full shoe again, press Reshuffle—not Reset—unless you also want to clear stored preferences on a shared device.
Reveal pacing
Reveal animations do not change randomness—they only delay visibility.
Shared projectors should pause on reveal until readers finish speaking the card aloud.
Classroom facilitation
Teachers demo probability by tracking draws on whiteboard alongside virtual deck.
When a student asks to ‘put the card back,’ facilitators must reshuffle or manually add back outside tool semantics.
Avoid projecting student last names with drawn card if privacy policy requires.
Multi-deck honesty
The default mental model is one standard deck; multiple decks or jokers require house rules announced before draw.
Some card nights treat drawn cards as public information; others hide until showdown—this tool only controls reveal timing on screen, not player secrecy at the table.
When teaching probability, compare predicted suit frequency to actual draws over twenty trials students record on paper.
Device sharing
Clear browser session between classes if devices stay logged into the same profile.
Avoid photographing student hands alongside revealed cards if policy forbids identifiable images.
Host closing checklist
Reshuffle before the next game if discard pile mattered.
Thank guests for using virtual deck when travel made physical cards impractical.
Log any tech glitch for next host handoff.