APP_VERSION :: v0.3.0

Math Rocks Dice

The professional dice engine for tabletop RPG players and game masters. Built with cryptographic randomness, encrypted local storage, advanced notation, roll statistics, and a zero-account free-to-play premium loop.

CSPRNG fairness // AES-256-GCM local data // EN · ES · FR · IT · PT // Web · Android · iOS-ready

CORE_CAPABILITIES

Built for precision at the table

Complex Notation

Supports advanced formulas like 2d20h1 + 1d6! + 5. Exploding dice, success pools, keep/drop mechanics, and Fate/Fudge dice are native to the engine.

Local Privacy

No account required. Roll history, formulas, favorites, and cumulative statistics remain encrypted on your device with AES-256-GCM. Native builds include Firebase Analytics for allow-listed app-use events; custom events are sent only when analytics consent is granted.

Live-Session Speed

A custom input flow, saved favorites, persistent history, and multilingual UI reduce friction when the table needs the result now, not after a rules interruption.

SUPPORTED_NOTATION

RPG formulas without hand-waving

Basic roll

2d20 + 5

Roll two d20s and add a fixed modifier.

Keep highest

4d6kh3

Roll four d6s and keep the three highest.

Exploding dice

10d6!

Maximum values trigger additional rolls.

Success pools

5d10>7

Count dice that beat a target threshold.

Fate / Fudge

4df

Roll Fate dice with -1, 0, and +1 semantics.

Compounding

2d20!!

Exploding dice compound into one die result.

TECHNICAL_SPECIFICATION

The Randomness Engine

Most dice apps rely on ordinary pseudorandom number generators. Math Rocks Dice uses a Cryptographically Secure Pseudorandom Number Generator based on window.crypto.getRandomValues().

The engine applies rejection sampling to eliminate modulo bias, so every face of every die has the same mathematical probability. No hidden weighting. No weak randomness shortcut. Just transparent probability.

Randomness

[SOURCE] :: WEB_CRYPTO
[BIAS] :: REJECTION_SAMPLING
[PRNG] :: CSPRNG

Storage

[PROTOCOL] :: AES-256-GCM
[ENGINE] :: INDEXEDDB
[MODE] :: LOCAL_ONLY

Data

[ACCOUNTS] :: NONE
[CUSTOM_ANALYTICS] :: CONSENT_GATED
[ROLL_DATA] :: LOCAL_ONLY
[HISTORY] :: ENCRYPTED

ROLL_TELEMETRY

Roll Dispersion Statistics

Version 0.3.0 adds consent-gated, allow-listed analytics events while keeping rolls, formulas, favorites, and history on your device.

New in 0.3.0

Custom app-use events are sent only after analytics consent is granted. Google advertising consent is separate; the itch.io build remains ad-free.

  • Individual Dice mode: per-die percentile distribution. A fair CSPRNG should read flat and uniform.
  • Roll Average (CLT) mode: per-formula average percentile. Multi-die rolls naturally form a bell curve.
  • Uniform and CLT benchmark modes for visually checking both statistical behaviors.
  • 50-bucket roll dispersion histogram across all, d4, d6, d8, d10, d12, d20, dF, and custom dX categories.

HUD_INTERFACE_SHOWCASE

Visual Systems & Layout Clearance

Exploration of the user interface across portrait and landscape screens. Native layouts incorporate precise top clearances for notifications and dynamic clearance for bottom-anchored advertisements.

[ SYSTEM_VIEW :: PORTRAIT_HUD ]5 SCREENS LOADED // SWIPE_TO_NAVIGATE
00_LAUNCHCSPRNG_LOADED
Math Rocks Dice Phone Screen 00_LAUNCH
01_DICE_HUDFORMULA_INPUT
Math Rocks Dice Phone Screen 01_DICE_HUD
02_STATS_DISPERSIONUNIFORM_DIST
Math Rocks Dice Phone Screen 02_STATS_DISPERSION
03_FORMULA_HELPDICE_NOTATION
Math Rocks Dice Phone Screen 03_FORMULA_HELP
04_PREMIUM_PORTALF2P_PASS
Math Rocks Dice Phone Screen 04_PREMIUM_PORTAL
[ SYSTEM_VIEW :: LANDSCAPE_TABLET ]3 CORES DETECTED // HIGH_DENSITY
TABLET_01_NOTATIONWIDESCREEN
Math Rocks Dice Tablet Screen TABLET_01_NOTATION

Dual-pane formula building and dice-notation help layout.

TABLET_02_STATSWIDESCREEN
Math Rocks Dice Tablet Screen TABLET_02_STATS

CLT (Central Limit Theorem) dispersion statistics histogram view.

TABLET_03_PREMIUMWIDESCREEN
Math Rocks Dice Tablet Screen TABLET_03_PREMIUM

Theme portal and Premium Pass status screen.

PREMIUM_LAYER

Earn Premium

The core dice engine stays unlimited. Premium is now earned through play: build XP through regular rolling or use optional rewarded ads to accelerate the next 30-day pass.

Earn a 30-day Premium Pass through active play: 4 XP unlocks the pass with no purchase required.
Daily qualified play grants XP after 5 minutes of rolling and 5 qualified rolls.
Optional rewarded ads grant +1 XP instantly, capped at 2 rewarded ads per day across all paths.
Itch.io builds are ad-free; Premium follows the same play-to-unlock progression as other builds.