エンジン仕様: Weighted Odds, TERRA Seeds & 2D6/2D12 Math

TerraRoll executes 100% client-side in your browser using deterministic Mulberry32 pseudorandom streams, transparent 2D6 + 2D12 dice formulas, and strict Trusted Types DOM security.

Weighted Birth Sampling & Deterministic TERRA Seeds

In True Odds mode, a uniform draw across 132,368,918 annual global births selects one of 172 countries proportionally to its UN birth cohort size. Every run generates a shareable seed code formatted as TERRA-ISO3-ERA-HASH (while remaining backward-compatible with legacy STAR-... codes).

Entering that code initializes a deterministic 32-bit Mulberry32 generator so two duelists receive identical birthplace, starting household quintile, and rival score targets.

2D6 Lucky Boost Tray & 2D12 Crossroad Resolution

Before rolling 2D12 (triangular bell curve from 2 to 24, median 13), players roll two six-sided dice in the Lucky Boost tray with optional click-to-Hold and 1 Free Reroll: sums 2 to 5 grant +1, 6 to 7 grant +2, 8 to 9 grant +3, 10 to 11 grant +4, 12 grants +5, and any matching Doubles grant +5 plus +6 Star Shards.

The crossroad check resolves via Total = 2D12 + floor(RelevantStat / 15) + Boost2D6 + (SpentLuckyStar ? 3 : 0) against the visible difficulty target.