You will need three coins.
Toss the coins.

Heads equals three
Tails equals two

From the table below, draw a line depending on the total. Add up the resulting value of toss.

3x tail = 6
2x tail, 1x head = 7
2x head, 1x tail = 8
3x head = 9

Toss the coins five more times, drawing each new line above the last. The first toss creates a hexagram from the bottom.

Hexagram example:

-- -- = 8
-- -- = 8
- x - = 6
----- = 7
--o-- = 9
----- = 7

The result is 797688

Back to I Ching Oracle - The Book of Changes