Formula & Math · 6 min read

How Entropy Points Work in Six-Digit Number Games

A complete breakdown of Shannon entropy, digit-sum variance, deterministic offsets, and badge stacking across 1,000,000 six-digit inputs.

When you type a six-digit number into the RNGdle Sandbox EP Calculator, you immediately see a score like 6,289 EP or 442,530 EP alongside a rarity tier and population rank. Yet many players wonder why two seemingly random numbers score differently, or why a low-diversity number like 000000 crushes a high-diversity number like 123456 even though "entropy" is in the name.

This guide breaks down every term of the independent sandbox EP formula at the default ×1 multiplier, walks through real worked calculations, and explains how raw entropy interacts with digit-sum extremes and badge bonuses.

The complete sandbox EP formula at ×1

For every six-digit input 000000 through 999999 (with one deliberate reference exception, 289447, which is fixed at 2,479 EP), the sandbox computes Entropy Points as the sum of five components:

EP = 2,100 + round(140 × H) + 12 × |digit sum − 27| + deterministic offset (0–579) + matched badge bonuses

Let's unpack what each piece measures and how large its contribution can be.

1. The 2,100 baseline

Every number starts from a fixed floor of 2,100 EP. This keeps ordinary, pattern-free rolls in a readable four-digit range (typically between 2,415 and 3,100 EP) rather than clustering near zero. Across all 1,000,000 six-digit strings, the absolute lowest score produced by the sandbox rules is 2,415 EP (shared by 48 inputs).

2. Digit Shannon entropy: round(140 × H)

In information theory, Shannon entropy measures how evenly symbols are distributed in a message. For a six-digit string, count how many times each distinct digit appears and divide by 6 to get its proportion p. Then:

H = −Σ p × log₂(p)

Because there are 6 positions, H always falls between two clean mathematical bounds:

Digit pattern Example Shannon entropy H Contribution round(140 × H)
All 6 digits identical 000000, 777777 0.0000 bits 0 EP
3 of one digit, 3 of another 111222, 191919 1.0000 bits 140 EP
4 identical + 2 different 333391 1.2516 bits 175 EP
3 pairs (2-2-2) 123321, 456456 1.5850 bits 222 EP
One pair + 4 singles (2-1-1-1-1) 524287, 289447 2.2516 bits 315 EP
All 6 digits distinct (1-1-1-1-1-1) 123456, 524087 2.5850 bits 362 EP

Notice the paradox: the Shannon entropy term itself adds at most 362 EP. A completely uniform string with six unique digits earns +362 EP from H (plus +1,500 EP from the Prism Spectrum badge), whereas 000000 earns 0 EP from H—yet 000000 wins by over 400,000 EP because rare structural collapses trigger massive badge multipliers.

3. Digit-sum deviation: 12 × |digit sum − 27|

The average value of a single decimal digit (0 through 9) is 4.5, so the expected sum of six random digits is 6 × 4.5 = 27. Most ordinary six-digit numbers cluster near 27—making extreme sums rare.

The sandbox rewards distance from 27 at 12 EP per unit:

  • A balanced sum of 27 adds 0 EP.
  • The default benchmark 524287 has digit sum 5 + 2 + 4 + 2 + 8 + 7 = 28, adding 12 × |28 − 27| = 12 EP.
  • Both extremes—sum 0 (000000) and sum 54 (999999)—sit 27 units away from the mean, contributing the maximum 12 × 27 = 324 EP (on top of the Minimalist Core or Overcharged Sum badges).

4. Deterministic tie-breaking offset (0–579)

Without a fine-grained tie-breaker, hundreds of thousands of badge-free numbers would land on identical integer scores. The sandbox adds a deterministic hash derived from the integer value:

offset = floor(frac(sin(number × 12.9898 + 78.233) × 43758.5453) × 580)

Because it is purely deterministic, the same six-digit number always receives the exact same offset on every visit, browser, and device. You can verify this by opening 524087 (8,351 EP) versus 524387 (8,207 EP): both match the exact same two badges (Prism Spectrum and Prime Enigma), and their 144 EP difference comes from digit-sum deviation plus their deterministic offsets.

5. Matched badge bonuses (the real score driver)

While base components span roughly 2,415 to 3,200 EP, matched badges from the 43-badge sandbox catalog add anywhere from +600 EP (Two Pair) up to +220,000 EP (Archimedes Constant, Euler's Number, Golden Proportion) and stack when non-conflicting rules overlap.

Worked walkthrough: how #524287 reaches 6,289 EP

Take the default sandbox benchmark, Mersenne prime 524287:

  1. Baseline: 2,100 EP
  2. Shannon entropy: digits {5, 2, 4, 2, 8, 7} have one pair (2) and four singles → H = 2.2516 bits → round(140 × 2.2516) = 315 EP
  3. Digit-sum deviation: 5 + 2 + 4 + 2 + 8 + 7 = 28 → 12 × |28 − 27| = 12 EP
  4. Deterministic offset: 62 EP
  5. Matched badges: 524,287 is prime (Prime Enigma) → +3,800 EP
  6. Total: 2,100 + 315 + 12 + 62 + 3,800 = 6,289 EP (RARE, Top 17.8688%)

Why tier thresholds and population ranks differ

Rarity tiers (COMMON through GODLY) are fixed score thresholds—except that matching a legendary, mythic, or godly badge automatically lifts the tier to at least that badge's rarity. Meanwhile, population ranks (Top X% / Bottom X%) compare your exact score against all 1,000,000 enumerated inputs at ×1, including ties.

Ready to experiment? Enter your favorite six-digit number in the Number Analyzer or test single-digit upgrades on 524287 directly.

Frequently asked questions

Does higher Shannon entropy always mean a higher EP score?

No. Base Shannon entropy contributes at most 362 EP when all six digits are unique. Ultra-high scores above 50,000 EP come primarily from stacking rare structural, mathematical, and cultural badge bonuses.

Why is 289447 fixed at 2,479 EP instead of using the standard formula?

289447 is an explicit fixed reference roll in the independent sandbox rules set to 2,479 EP (Bottom 1.3147%) with zero badge bonuses, giving players a clean baseline for comparisons.

More RNGdle Probability & Strategy Guides

All guides →