Everyone argues about how to interpret a hexagram. Almost nobody checks the arithmetic that produced it — even though that arithmetic has been fixed for two thousand years, and it is the easiest part of the whole system to audit.
Read any forum thread about the I Ching and you will find the same debate: which line text to read, what a changing line means, whether the answer "worked." All of that comes after the cast. The cast itself is a small, exact machine: a random draw that produces one of four numbers, repeated six times, bottom to top. Get the numbers wrong and every elegant interpretation downstream is commentary on a reading that never happened.
Three methods are in current use: the 铜钱法 () — three-coin method; the 蓍草法 () — yarrow-stalk method; and the random-number method used by software. This article gives the exact probabilities of each, shows a real cast from our engine with its seed so you can reproduce it, quotes the classical line texts it produced, and ends with a five-minute way to check whether any app you use is casting honestly.
A hexagram is built one 爻 () — line — at a time. Each line is not a yes/no bit but a value from a set of four, and the value carries two pieces of information: whether the line is yin or yang, and whether it is changing.
| Value | Name | Line | Changes? | Coin odds |
|---|---|---|---|---|
| 6 | 老阴Old Yin | broken | yes → yang | 1 in 8 |
| 7 | 少阳Young Yang | solid | no | 3 in 8 |
| 8 | 少阴Young Yin | broken | no | 3 in 8 |
| 9 | 老阳Old Yang | solid | yes → yin | 1 in 8 |
Six such lines make a 卦 () — hexagram. The six values you actually drew form the 本卦 () — primary hexagram, sometimes called the "root" hexagram: the situation as it stands. Then the old lines — the 6s and the 9s — flip into their opposites, because of the ancient rule 老变少不变 () — "the old change, the young do not." Flip them and you get a second, derived hexagram: the 变卦 () — changed hexagram — the direction the situation is moving in.
So the physical act of casting has one job: produce six values drawn from {6, 7, 8, 9}. Every method below is a different machine for drawing those six numbers. What differs between them is not the destination — it is the odds.
The fastest of the three is also the one most people meet first. Take three coins — traditionally bronze cash coins, one face with an inscription (字, ) and one blank (背, ). Assign one face the value 2 and the other the value 3. Toss all three, add the faces you see, and write down the total. Repeat six times. The first toss is the bottom line; the sixth is the top.
Three coins give eight equally likely outcomes, because each coin is a fair two-way choice (2³ = 8 combinations). The sums are not equally likely:
Hence the classical 1 : 3 : 3 : 1 distribution. Note that which face is 2 and which is 3 is pure convention — writers differ on it — and it makes no difference to the arithmetic, because both faces are equally likely. What does matter is that the machine uses four outcomes, not two, and not four equal outcomes. We will come back to that, because it is where a lot of software quietly breaks.
The stalk method is the older ritual, and the one the tradition treats as the root technique. Fifty stalks are used; one is set aside at the start and left out for the entire operation. The remaining forty-nine are split at random into two heaps, one stalk is taken from the right-hand heap, and each heap is then counted off in fours, with the remainders laid aside. That whole operation is one 变 () — one "change."
Three changes produce one line. Six lines therefore take eighteen changes, which is why the procedure is remembered in the traditional formula 三变成爻,十八变成卦 () — "three changes make a line, eighteen changes make a hexagram." At the end of each line's three changes, the stalks that remain are gathered and counted in fours, and the count of fours gives the line value directly: 6, 7, 8 or 9.
The labour is the point of the ritual — commonly estimated at fifteen to twenty minutes per hexagram against a minute or two for coins. The mathematical consequence matters more than the time cost, and it is the most misunderstood fact about the I Ching: the stalk method gives a different distribution from the coins, and it is not symmetric.
Digital casting replaces coins or stalks with a random number generator. That is a legitimate substitution — a coin flip is a coin flip whether it happens in your hand or a chip — but it introduces two design decisions the physical methods never had to make.
Decision one: which distribution? The correct target is the same set of four values with the coin method's 1 : 3 : 3 : 1 weighting. The common shortcut — "pick a number from 6, 7, 8 or 9, each with probability one quarter" — is wrong, and wrong in a way you can measure. Under a uniform 1-in-4 model, each line has a 1-in-2 chance of being an old line, so an average six-line cast contains three changing lines instead of the correct 1.5. The reading changes character: far more hexagrams transform, more line texts get pulled in, and the cast no longer matches a physical toss.
Decision two: seeding. A good engine lets you reproduce a cast from a fixed seed. The seed fixes which stream of random draws you get, so the same seed yields the same six values every time — which means a cast can be audited and replayed rather than taken on faith.
Reading the vocabulary: the Chinese terms for casting still carry the history of the practice in their structure.
The words themselves record the migration from bone to plant to number.
Here is the table that separates a careful casting implementation from a lazy one. The stalk figures are the standard theoretical values for the traditional procedure with unbiased division of the heaps; the coin figures follow from the eight equally likely outcomes above.
| Line value | Yarrow stalks | Three coins |
|---|---|---|
| 6 — Old Yin (changing) | 1/16 (6.25%) | 1/8 (12.5%) |
| 7 — Young Yang (static) | 5/16 (31.25%) | 3/8 (37.5%) |
| 8 — Young Yin (static) | 7/16 (43.75%) | 3/8 (37.5%) |
| 9 — Old Yang (changing) | 3/16 (18.75%) | 1/8 (12.5%) |
| Any changing line (6 or 9) | 1/4 | 1/4 |
Two things jump out, and both are routinely reported wrongly. First, the two methods produce the same overall rate of change: one line in four moves, in either method, for an expected 1.5 changing lines per cast. It is a widespread claim that stalks "change less" than coins. They do not.
Second, what actually differs is which line moves. Under the coins, old yin and old yang are equally likely — change is perfectly balanced, yang and yin move at the same rate. Under the stalks, a moving yang line (9) is three times more likely than a moving yin line (6), and the single most common outcome in the whole table is the static young yin at 7/16. The stalk ritual encodes a world-view in which creative, outgoing force is more likely to reach its breaking point than receptive force; the coin method flattens that asymmetry into a perfectly even split.
How we resolve it. This is a genuine doctrinal fork, and we do not pretend otherwise: neither distribution can be shown to predict better, and neither is a defect. The two positions differ about what casting is — a hand-worked ritual whose physical asymmetry carries meaning, or a clean randomiser whose fairness is part of its integrity. Our engine implements the three-coin model, because it is exactly computable, symmetric and reproducible — and because we state which model produced your hexagram instead of leaving you to guess.
And it is measurable rather than asserted. We ran our own engine for one hundred thousand single-line draws. The measured distribution was 12.33% for 6, 37.25% for 7, 37.77% for 8 and 12.65% for 9 — the 1 : 3 : 3 : 1 profile, to within sampling noise. That is the kind of claim a casting tool can make, because it is arithmetic on a random process, not a vibe.
Abstractions are easy; here is an actual six-line cast, produced by our engine with the seed 1009 set in advance, so that the entire sequence is reproducible rather than narrated after the fact. The question put to the coins was: "Should I accept the offer in another city?"
| Position | 1 (bottom) | 2 | 3 | 4 | 5 | 6 (top) |
|---|---|---|---|---|---|---|
| Value | 7 | 7 | 7 | 6 | 7 | 7 |
| Line | yang | yang | yang | yin · moving | yang | yang |
Five young yang lines and a single old yin sitting in the fourth position. Because the old lines change, that one line flips from broken to solid, and the whole hexagram turns:
Even without any interpretation, this cast has a shape worth noticing: a chart that is almost entirely yang, held back by one soft line in the fourth place — and precisely that line is the one in motion. The engine also computes the derived 互卦 () — nuclear hexagram, read from lines 2–4 and 3–5 — which here is Hexagram 38, 睽 (), Divergence.
Now the part that most tools skip: the classical texts attached to the hexagrams you actually drew. These strings are printed from EchoReading's own I Ching text database, keyed to the King Wen sequence — 384 line statements in all — not recalled from memory. For 小畜:
亨。密云不雨,自我西郊。
"Small Taming has success. Dense clouds, no rain, from our western region."
Hexagram judgment (卦辞), Hexagram 9
The moving line — the fourth, an old yin — carries this line text:
有孚,血去惕出,无咎。
"If you are sincere, blood vanishes and fear gives way. No blame."
Line statement (爻辞), Hexagram 9, line 4
And the Great Image (大象) of the primary hexagram:
风行天上,小畜。君子以懿文德。
"The wind drives across heaven: the image of Small Taming. The superior person refines the outward aspect of their nature."
Great Image, Hexagram 9
For the transformed hexagram, the second text the tradition reads:
元亨利贞。
"The Creative works sublime success, furthering through perseverance."
Hexagram judgment (卦辞), Hexagram 1
Read together, the cast is fairly specific: restraint now ("dense clouds, no rain"), sincerity dissolving fear at the point of transition, moving toward pure active yang. That is what a cast looks like when reported with its arithmetic attached — question, values, lines, both hexagrams, source texts.
One more fork, and this one is about interpretation rather than casting — but it determines which of the texts above you are supposed to read. When exactly one line is old, the answer is uncontroversial, and it is the case we just walked through. Zhu Xi (朱熹) set down the most widely followed rule table in the 《易学启蒙》 (), in the chapter on reading transformed hexagrams:
一爻变,则以本卦变爻辞占。
"With one changing line, one divines by the statement of that changing line in the primary hexagram."
Yi Xue Qi Meng, Kao Bian Zhan (考变占) chapter, rule 2 of the seven-rule table
The full table runs: no changing lines, read the primary judgment; one, read its line text; two, read both changing lines with the upper one governing; three, read both judgments as a pair; four and five, read the unchanging lines of the changed hexagram; six, read the changed hexagram's judgment. The logic is a sliding rule that decides, for every possible count of change, which single text is authoritative.
That four-and-five-line rule is exactly where later readers objected. A Ming-dynasty commentary preserved in the Siku Quanshu edition — the 《启蒙意见》 (), fourth fascicle — argues the point bluntly: if divination "turns on change" (占主乎变, ), then consulting the stable lines of the transformed hexagram leaves the very lines that moved with nothing to say. Its proposed replacement is short:
余意除六爻变者用彖辞,馀皆用爻。
"In my view, except where all six lines change — which uses the judgment — every case should use the line texts."
Qi Meng Yi Jian, juan 4 (Siku Quanshu full-text edition)
Two rule-sets, both classical, both defensible, disagreeing about four lines out of six. This is the point at which a reader realises how much of the "meaning" of a hexagram depends on which convention the tool happens to have baked in — and how rarely the tool ever says.
Our position. We do not adjudicate the dispute by hiding the evidence. The engine always reports the full cast: the six values, which lines are old and which are young, the primary hexagram, the changed hexagram, the nuclear hexagram and the positions of every changing line. Whether you then follow the rule table or the dissent, you read it off facts both schools would accept. Where a reading service pre-selects one rule and never mentions the alternative, it is quietly making a doctrinal choice on your behalf.
Because the cast is arithmetic, it can be audited. Five checks, in order of how fast they expose a shortcut:
1009 in the example above returns the same six values every time it is run.Finally, the human half. Because the cast is random and the reading is not, the quality of the question sets the ceiling on the whole exercise. A few practices that follow directly from the mechanics:
The cast is the one part of the I Ching that is not a matter of opinion. Six values, one distribution, one derived hexagram — arithmetic that the same rules have governed for two thousand years, and that you can check yourself in an afternoon. Everything else, including the rule about which line to read, is interpretation, and should be labelled as such.
Cast a hexagram on EchoReading.
Six values, the primary and changed hexagram, the classical line texts, and the arithmetic shown rather than hidden.
Cast an I Ching Reading →