The Foundation: Default Deck
The card distribution process at Basepoker begins with a default deck configuration:
- Pattern Order: ♧ (Clubs) → ♢ (Diamonds) → ♡ (Hearts) → ♤ (Spades)
- Value Order: 2 → 3 → … → K → A
The Distribution Process
Shuffling the Deck
Each round starts with shuffling the default deck. The shuffle is performed using a combination of a Hand Seed and a Player Seed, employing the Fisher-Yates Shuffle Algorithm. This ensures that each shuffle is unique and unpredictable.
Dealing to the First Player
- Shuffle: The deck is shuffled using the Hand Seed and Player Seed.
- Dealing: Two hole cards are dealt to the first player.
- Burn Cards: Two cards are burnt (discarded) to maintain randomness and prevent any form of prediction.
Dealing to Middle Players
For each subsequent player (middle players):
- Shuffle: The default deck is reshuffled using the Fisher-Yates Algorithm. Importantly, this shuffle excludes all previously dealt and burnt cards to maintain the integrity of the distribution.
- Dealing: Each middle player receives two hole cards.
- Burn Cards: Two cards are burnt for each player.
Dealing to the Last Player
- Shuffle: The deck undergoes another shuffle with the Hand Seed, again excluding all previously dealt and burnt cards.
- Dealing: The last player is dealt their two hole cards.
- Burn Cards: An additional two cards are burnt.
Dealing the Community Cards
After all players have received their hole cards:
- Shuffle: The remaining deck is shuffled one last time, excluding all previously dealt and burnt cards.
- Dealing: The community cards are dealt. These are the shared cards placed on the table that all players can use to make their best hand.

Ensuring Randomness and Fairness
The Fisher-Yates Shuffle Algorithm
The Fisher-Yates Shuffle Algorithm is a proven method to randomize the order of a sequence. By combining this algorithm with our unique Hand Seed and Player Seed, we ensure that each shuffle is completely random and fair.
Exclusion of Previously Dealt and Burnt Cards
To prevent any possibility of pattern prediction, our system excludes all previously dealt and burnt cards from each subsequent shuffle. This adds an additional layer of randomness and security.
Use of Seeds
- Hand Seed: A unique value generated for each hand to ensure no two games are alike.
- Player Seed: An individual value associated with each player, further enhancing the randomness of the shuffle.
That’s it! This is the final part of our randomness system. If you’d like to know more about our system, please join our Discord and feel free to ask questions!
- Understanding Randomness: Part 1 (Overview)
- Understanding Randomness: Part 2 (Daily Seed)
- Understanding Randomness: Part 3 (Player Seed)
- Understand Randomness: Part 4 (Shuffle & Distribution) *This article