Online and Live Blackjack

How Random Number Generators Shuffle Online Decks

A plain explanation of how software uses a random number generator to shuffle a virtual deck, and what independent test certificates do and do not tell you.

On this page
  1. The basic idea
  2. What kind of randomness is it?
  3. A shuffle step by step
  4. What this means for play
  5. What test certificates mean
  6. Is online blackjack rigged?
  7. Keep expectations realistic

The basic idea

In an online software game, there is no physical deck. The game holds a list of cards in memory, for example 52 cards per deck, multiplied by however many decks the table uses. To shuffle, the program rearranges that list using numbers produced by a random number generator, usually shortened to RNG. To deal, it takes the next card from the rearranged list, or in some games it selects a card at random each time.

The visual shuffle you may see on screen is decoration. The result is determined by the software before the animation finishes.

What kind of randomness is it?

Computers are deterministic, so most RNGs used in games are pseudo-random. They start from an internal state, called a seed, and apply a mathematical procedure that produces a long sequence of numbers that behave statistically like random ones. A well-designed generator has a very long cycle before it repeats, and good ones are seeded from an unpredictable source, such as hardware timing or system noise, so that the output cannot be guessed in advance.

Some systems use a hardware source, based on physical noise, to feed or replace the pseudo-random process. For a player, the practical difference is not visible. What matters is that outcomes cannot be predicted from earlier results.

A shuffle step by step

A commonly used method for shuffling a list fairly is a procedure in which the program works through the deck, swapping each position with a randomly chosen one. If done correctly, every possible ordering of the deck is equally likely. A poor method, or a poorly chosen random range, can introduce subtle bias, which is one of the things independent testing is designed to detect.

Once shuffled, the game proceeds like any other: it deals cards to you and the dealer according to the rules, and applies the same logic as in a physical game, for example drawing until the dealer reaches the required total.

What this means for play

  • Each shuffle is independent. If the game reshuffles after every round, which is common in software blackjack, cards from earlier hands do not influence the next one. The idea that a table is “due” for a certain card is the gambler’s fallacy.
  • Card counting does not help in that setting. Counting depends on cards being removed and not returned. If the whole deck is regenerated each round, there is nothing to track. Some games do deal several rounds from a shoe, in which case the information would in principle exist, but the operator controls how the game behaves and may limit it.
  • The house edge is set by the rules. Because the cards are random, the long-run result comes from payouts, dealer rules and your decisions. You can see the rules in the game information panel, as described in the article on reading online blackjack rules.
  • Short-term swings are normal. Streaks appear in genuinely random sequences, and they can look suspicious even when nothing is wrong. Large swings are part of statistical variance.

What test certificates mean

Independent testing laboratories examine RNGs and game software. They commonly run statistical tests on large samples of output to look for patterns, bias and predictability, and check that the game uses the generator correctly. They may also review the source code or the way the generator is seeded. Operators that pass often display a certificate or seal and may publish reports.

It helps to be realistic about what this proves:

  • It supports the claim that the output is statistically random and the game follows its stated rules at the time of testing.
  • It does not say the game is favourable to players. A perfectly random blackjack game still has a house edge.
  • It does not cover a software version released after testing, unless it is retested.
  • A seal on a page is a claim, not a proof. Where possible, verify it with the testing body or the regulator, as discussed in the article on fair play and licensing.

Is online blackjack rigged?

Reasonable scepticism is healthy, but a lost hand is not evidence of cheating. Over a short session, even a fair game produces losing streaks, and humans tend to see patterns in random sequences. The more reliable protections are a recognised licence, independent testing and clear rules. The belief that a dealer is cheating when you lose is a recurring one, and it is addressed more broadly in the myths section of this site.

If you suspect a genuine problem, keep screenshots and records and use the operator’s complaint process, then the regulator if needed.

Keep expectations realistic

Randomness is not a promise of results in either direction. It means only that outcomes cannot be forecast from previous hands. Blackjack has a house edge, outcomes are uncertain, and nobody can promise a profit. Play within a budget you can afford, and contact a local support service if gambling is becoming a concern.

The complete guide to online and live blackjack

Online Blackjack Explained for Newcomers
Read the guide

Keep exploring

Guides from other topics

All topics →