← Back to blog

·

A Dozen Bad Hands in a Row in Zha Jin Hua or Niuniu: Is It a Bug?

We computed exact hand odds and dealt three million hands with the live shuffle code: a straight or better comes about once every 11.5 hands and Bull Bull or better about once every 13.5, so a dry spell of a dozen hands is normal randomness, not a bug.

A player asked: in Zha Jin Hua and Niuniu I went a dozen or more hands without a good hand. Is that a bug? We checked the live dealing code, computed the exact odds of every hand type from the rules, and dealt three million hands locally with the same shuffle code the live tables use. We found no bug: a dozen weak hands in a row is common under genuinely random dealing. In Zha Jin Hua a straight or better arrives about once every 11.5 hands; in Niuniu, Bull Bull or better arrives about once every 13.5 hands. The chance of going 15 hands in a row without one is about 26% and 31% respectively.

1. What each hand can be

In Zha Jin Hua each player takes 3 cards from a 52-card deck, which gives 22,100 combinations. The table covers standard rooms with no jokers and no wild rank (joker and wild-rank rooms have different odds and are not covered here):

HandCombinationsChance per handAbout once every
Leopard520.24%425 hands
Straight flush480.22%460 hands
Flush1,0964.96%20 hands
Straight7203.26%31 hands
Pair3,74416.94%5.9 hands
High card16,44074.39%1.3 hands

In other words, about 3 hands in 4 are high card, with not even a pair.

In Niuniu each player takes 5 cards, which gives 2,598,960 combinations. Counting every one under BluffKing’s rules (A counts 1, J, Q and K count 10):

HandCombinationsChance per handAbout once every
Five Small7760.03%about 3,350 hands
Five face cards7920.03%about 3,280 hands
Four of a kind5840.02%about 4,450 hands
Bull Bull190,9767.35%13.6 hands
Bull 7 to Bull 9510,64819.65%5.1 hands
Bull 1 to Bull 61,024,20039.41%2.5 hands
No Bull870,98433.51%3.0 hands

About 1 hand in 3 is No Bull and about 2 in 5 are only Bull 1 to Bull 6. With the default multipliers, Bull 8 and Bull 9 are the first hands that pay 2×, and Bull Bull pays 3× (rooms can change the multipliers).

2. How common is a dozen hands without a good one?

Every hand is dealt from a freshly shuffled deck and has no link to the hand before, so the chance of missing N hands in a row is the chance of missing one hand, multiplied N times:

None in a row of…10 hands12 hands15 hands20 hands
Zha Jin Hua: pair or better5.2%2.9%1.2%0.3%
Zha Jin Hua: straight or better40.4%33.7%25.7%16.3%
Zha Jin Hua: flush or better57.3%51.3%43.4%32.9%
Niuniu: Bull 8 or better10.1%6.4%3.2%1.0%
Niuniu: Bull Bull or better46.2%39.6%31.4%21.4%

If a “good hand” means a straight or better in Zha Jin Hua, or Bull Bull or better in Niuniu, a dozen hands without one is close to normal: roughly 1 player in 3 or 4 goes 15 hands without one; counting only a flush or better, it is close to half. Even with a lower bar of a pair or Bull 8, any particular 15-hand stretch is unlikely, but the more you play, the more likely you hit one somewhere: over 100 hands of Zha Jin Hua, the chance of a 12-hand stretch without even a pair is about 52%; over 100 hands of Niuniu, the chance of a 15-hand stretch without Bull 8 or better is about 48%. Across everyone who plays on a given day, plenty of players hit a run like this.

3. Three million hands with the live shuffle code

To confirm the real code matches the theory, we called the open-source code the live tables deal with, mental-poker/src/pf2.rs, directly on a local machine. Every 500 hands used a freshly generated encrypted locked deck, every hand used fresh player random numbers, the same function as production computed the deal order, and the first seat was scored with the same rules as the live game (the first 3 cards for Zha Jin Hua, the first 5 for Niuniu). Three million hands in total, in two batches:

HandTheorySimulation
Zha Jin Hua · Leopard0.24%0.23%
Zha Jin Hua · Straight flush0.22%0.22%
Zha Jin Hua · Flush4.96%4.95%
Zha Jin Hua · Straight3.26%3.26%
Zha Jin Hua · Pair16.94%16.91%
Zha Jin Hua · High card74.39%74.43%
Niuniu · Five Small, five face cards, four of a kind0.08%0.08%
Niuniu · Bull Bull7.35%7.33%
Niuniu · Bull 7 to Bull 919.65%19.66%
Niuniu · Bull 1 to Bull 639.41%39.39%
Niuniu · No Bull33.51%33.53%

For every hand type (Bull Bull down to each of Bull 1 to Bull 9 and the three special hands), the simulated rate is within 0.05 percentage points of theory, inside normal random variation. Across these three million hands, the longest stretch without even a pair was 49 hands, and the longest without Bull Bull or better was 159 hands: play enough hands and very long bad runs are certain to appear. This is a local run of the same code, not a statistic of production hands. For a check of real Zha Jin Hua hands, see Two Leopards in five hands: across the 11,397 hands checked then, Leopards appeared at the theoretical rate.

4. Does the system adjust your cards?

No. Zha Jin Hua and Niuniu dealing has no step that could. This is how default dealing works (Zha Jin Hua rooms with jokers, and Niuniu advanced-encryption rooms that players choose, deal differently and are not covered here):

  1. Lock the deck first. Before each hand the server draws a seed from the operating system’s secure random source, locks an encrypted standard 52-card deck, and shows that deck’s commitment at the table.
  2. Player random numbers set the order. Each human player in the hand has their browser submit a fingerprint of a random number first and reveal the number afterwards; the locked-deck commitment and these numbers together give the deal order, through an unbiased Fisher–Yates shuffle.
  3. Fixed positions by seat. Zha Jin Hua gives each seat 3 consecutive cards, Niuniu 5, and the positions are fixed before the deal.

None of these steps reads your account, level, purchases, chip count or recent results, so there is no step that makes a particular player lose and no step that hands out better cards after a losing run. That is also why the odds of your next hand are the numbers in the tables above, however bad the last dozen were: nobody is ever “due”. A system that topped you up with good cards after a losing streak would itself be rigging the deal. Bots play by the same rules; their cards come from the same random deck as everyone else’s. For the full picture, see Is Zha Jin Hua fair? and Can anyone see Niuniu cards early? For where the seed comes from and why the shuffle has no bias, see Is the Zha Jin Hua shuffle truly random?

5. Why it feels worse than it is

  • Good hands are rare to begin with. About three quarters of Zha Jin Hua hands are high card and about a third of Niuniu hands are No Bull. Mostly weak hands are what a fair deal looks like.
  • Other players’ good hands stand out. At a five-player Zha Jin Hua table, at least one of the other four holds a straight or better in about 30% of hands; at a six-player Niuniu table, at least one of the other five holds Bull Bull or better in about 32% of hands. Niuniu shows every hand at the end, so you see someone else’s big hand about every third hand while your own comes around once in about 13.
  • Losses stick in memory. A big hand that lost, or several hands in a row beaten, are remembered clearly; ordinary folded hands are forgotten quickly.
  • A dozen hands is a tiny sample. The number of good hands in a dozen swings widely. Telling whether something is “aimed at me” takes hundreds of hands.

6. How to tell if something is really wrong

  • Verify single hands. Zha Jin Hua: table menu “Record” → “Hand history” → pick a hand → “Deal proof” → “Verify deal”. Niuniu: after a hand ends, open “Verify cards” in the table menu and tap “Verify this hand”. Verification runs on your own device; if it shows a mismatch, please send us a screenshot.
  • Look at the long run, not one stretch. Over 300 hands of Zha Jin Hua you should expect about 77 hands of a pair or better, normally somewhere between 62 and 92; fewer than 55 would be clearly low. Over 300 hands of Niuniu you should expect about 22 of Bull Bull or better, normally between 13 and 31; fewer than 9 would be clearly low. If your record is clearly below these numbers, send us the hand count and time window and we will check it against the hand records.

7. How to verify a deal

Hand verification checks the deck commitment and the deal order computed from player seeds. On the device you played on, it also checks the commitment saved at the start of the hand for up to 30 days. The server compares hands and settles results. Bots contribute no player seeds. If no human seed is submitted, the server seed determines the order. See verification by game.