The six I Ching lines in a three-coin toss are generated from six groups of three coin outcomes: assign heads 3 and tails 2, total each group as 6, 7, 8, or 9, and record the groups from Line 1 at the bottom through Line 6 at the top.
In a manual cast, each group comes from tossing the three coins together; in a browser-based version, secure local random bits supply the head-or-tail outcomes. The six lines form a hexagram, and a transformed hexagram can be derived only when at least one line is changing. This describes the cast's structure rather than making a random outcome a factual prediction.
For a browser-based cast that follows the same convention without asking for a personal question, I Ching Reading generates all six three-coin groups locally.

The three-coin rule at a glance
Each line comes from one group of three coins. The declared convention is heads = 3 and tails = 2, so the total is heads × 3 + tails × 2. Only four totals are possible: 6, 7, 8, and 9. The UAYA Foundation overview of the three-coin method describes this basic coin-and-total approach.
For example, a group showing heads, tails, and tails has a total of 3 + 2 + 2 = 7, which produces a young yang line: one solid, stable stroke.
| Three-coin total | Line type | Drawing | Status |
|---|---|---|---|
| 6 | Old yin | Broken | Changing; becomes yang |
| 7 | Young yang | Solid | Stable |
| 8 | Young yin | Broken | Stable |
| 9 | Old yang | Solid | Changing; becomes yin |
The labels “young” and “old” describe change status, not the age of the coins. A young 7 or 8 stays as cast. An old 6 changes from broken to solid, while an old 9 changes from solid to broken.
Generate the six lines in the correct order
For a manual I Ching coin toss, keep the value convention and line positions visible so that no group is accidentally reversed. The procedure is:
- Set the value convention. Decide that heads equals 3 and tails equals 2 before casting. The three coins form one group and produce one line; they do not create three separate lines.
- Toss and total the first group. Toss all three coins together, record their visible faces, and add their values. Use the total-to-line table to determine whether the result is a 6, 7, 8, or 9.
- Record the first result as Line 1 at the bottom. This is the lowest line of the completed hexagram.
- Repeat through Line 6. Toss the coins five more times and record Line 2, Line 3, Line 4, Line 5, and Line 6 in sequence. Each later line is added above the previous one.
- Separate the lower and upper trigrams. Lines 1–3 form the lower trigram, while Lines 4–6 form the upper trigram. Keep those positions unchanged when identifying the numbered King Wen hexagram.
- Mark the changing lines. A total of 6 or 9 changes polarity in the transformed figure. Totals 7 and 8 remain exactly as generated.
- Check the completed record. Confirm that there are six lines and that every line has a position, three-coin total, polarity, and change status.
Reversing the six recorded positions changes which three lines act as the lower trigram and which act as the upper trigram; it can also reverse the order within those sets. The same collection of line types can therefore lead to a different King Wen hexagram when the positions are mishandled.
Keep the stored order separate from the visual stack
The underlying line order is bottom-first: Line 1, Line 2, Line 3, Line 4, Line 5, and Line 6. A correctly drawn hexagram places Line 6 at the top and Line 1 at the bottom. That visual arrangement does not mean the data was recorded from the top down.
The local tool keeps its internal line array in bottom-first order while drawing Line 6 above Line 5 and continuing downward to Line 1. Preserving that distinction is essential because the lower-trigram and upper-trigram keys determine the numbered hexagram. For an additional orientation check, see how to recheck I Ching lines, trigrams, and the King Wen mapping.
Build the transformed hexagram from changing lines
The primary hexagram uses all six lines exactly as generated. The transformed hexagram is calculated by changing only the old lines:
- Total 6: the broken old yin line becomes a solid yang line.
- Total 9: the solid old yang line becomes a broken yin line.
- Totals 7 and 8: the young yang or young yin lines remain unchanged.
The transformed figure is therefore not another cast; it is a deterministic view of the original cast after its changing lines have flipped. If no line totals 6 or 9, there is no changing line and no transformed hexagram to compare. When changes are present, the tool identifies both the numbered primary hexagram and the transformed King Wen hexagram.
Generate the six groups in the browser
In the local tool, choose Cast six lines. The action requests 18 random 32-bit values from the browser Web Crypto API. One low bit from each value selects heads or tails, and the resulting 18 coin outcomes are grouped into six triples. The W3C Web Cryptography API's getRandomValues method is the browser interface used for those random values.
- Review the convention: heads is worth 3, tails is worth 2, and the six lines are recorded from the bottom upward.
- Choose Cast six lines to generate the six three-coin groups in the current browser tab.
- Inspect every line. Each displayed row shows its position, three coin faces, total, polarity, stability, and changing status.
- Compare the figures when applicable. If changing lines exist, check the numbered primary hexagram beside its transformed hexagram.
- Use Reset to clear the current cast and return to the initial explanation.
If secure random generation is unavailable or throws an error, the tool reports the failure and produces no cast; it does not silently fall back to Math.random. All state remains in the current browser tab, and Reset removes the current result.
The page contains no fetch call, analytics call, history store, localStorage record, or personal-question field. It does not request a name, birth date, account, or contact detail. The privacy promise is local processing with no persistence, not tamper resistance or secrecy from someone controlling the device.
What the result includes and what it cannot promise
The output is an inspectable I Ching structure. It includes the coin faces and totals, each line's polarity and change status, the lower and upper trigrams, the numbered primary King Wen hexagram, and a transformed hexagram when changing lines exist. Unicode symbols and official English names serve as supporting labels.
The tool does not provide a full Liuyao interpretive reading, a guaranteed prediction, or Najia calendar calculations. It does not copy a modern commercial translation, publish unsourced line judgments, or generate an AI interpretation. Instead, it offers neutral prompts for comparing the present structure, the marked changes, and the transformed structure in your own reflection.
The random process makes no claim of supernatural accuracy, and no cast is guaranteed to describe an event. The tool is intended for cultural exploration, reflection, and entertainment, not medical, legal, financial, safety, or other professional advice.
A final six-line verification check
- Confirm that six groups of three coin faces were generated.
- Check that every three-coin total is 6, 7, 8, or 9.
- Verify that Line 1 is at the bottom and Line 6 is at the top.
- Keep Lines 1–3 as the lower trigram and Lines 4–6 as the upper trigram.
- Mark only totals 6 and 9 as changing.
- Compare the primary and transformed figures only when a changing line exists.