I Ching simulator with accurate Yarrow Stalk probabilities
Details
- External ID
- 46261942
- Source
- HN
- Company
- —
- Product
- I Ching simulator with accurate Yarrow Stalk probabilities
- Website domain
- castiching.com
- Launched
- Dec. 14, 2025
- Cohort
- —
- Upvotes
- 63
- Upvotes percentile
- 0.8454198473282443
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
I built this because I wanted a digital I Ching that honors the original math, rather than just Math.random().Technical detail for the curious:The simulation follows the traditional Yarrow Stalk algorithm (Da Yan). The core of this algorithm relies on modulo-4 arithmetic on the stalks remaining after a random split.To make it physically realistic, I used a Box-Muller transform to simulate the user splitting the stalks with a Gaussian distribution (since humans naturally tend to split near the middle), rather than a uniform random split.I was worried this 'human bias' might skew the modulo probabilities, so I ran a 1-million-run Monte Carlo simulation to verify.The Result: The remainders [0,1,2,3] still emerged with a near-perfect 25% distribution (deviation < 0.05%).So, the app simulates the physics of human imperfection while preserving the mathematical perfection of the probability distribution (where Old Yin is 1/16).Stack: Next.js + Tailwind cssHappy to answer any questions about the math or the hexagrams!
Enrichment
- Theme
- scientific computing and deep tech tools
- Vertical
- Horizontal
- Function
- —
- Audience
- B2C
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- i ching divination simulator
- Manually corrected
- False
Could you build this?
Yes An I Ching simulator implementing the traditional modulo-4 Da Yan algorithm and displaying Wilhelm-Baynes translations is a purely client-side math and text application easily created by prompting.
Discussion
20 comments analyzed.
Competitors mentioned: classicofchanges.com, arrow.js, Next.js
Concerns raised: AI interpretations feel soulless or risky, State management complexity with probability calculations, Difficulty maintaining vanilla JS for complex logic
Feature requests: 3D simulation of yarrow stalk casting method, Shareable result cards with visual hexagram patterns, Reading persistence across browser sessions
Competitors
Other products that read as similar to this one — 25 launches clear the similarity bar, closest 8 shown.
Attention rank: #5 of 26 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 44 days after the earliest competitor.
- The King Wen Permutation: [52, 10, 2] · hn · 2026-03-23 · 65 upvotes · similarity 0.44
- I built a hardware quantum RNG and wired it into a Magic 8-Ball · hn · 2026-06-26 · 13 upvotes · similarity 0.43
- How to Get a Fable CoT for the Jacobian Conjecture Refutation · hn · 2026-07-21 · 7 upvotes · similarity 0.37
- 天机推演 · ph · 2026-09-28 · 1 upvotes · similarity 0.36
- Strange Attractors · hn · 2025-10-31 · 804 upvotes · similarity 0.35
- My Degenerate Craps Simulator · hn · 2026-02-21 · 6 upvotes · similarity 0.35
- genpark-monte-carlo-geometric-brownian-motion-skill · github · 2026-09-28 · 7 upvotes · similarity 0.35
- math-gambling · github · 2026-09-10 · 7 upvotes · similarity 0.34
Other launches for this product
- No other launches for this product.