if you want to do it at home heres how you do it..
flip 3 coins ,
if the majority are heads its yang _____________
if the majority are tails its yin ______ ______
do this six times recording either a broken line or unbroken line starting at the bottom
so at the end you should have six lines
you can put a 1 next to yang lines and a 0 next to yin lines
like this
______ 1
___ ___0
______ 1
___ ___0
_______1
___ ___0
or :|:|:| sideways
you can then lookup the hexagram number here
http://en.wikipedia.org/wiki/I_Ching
then start from bottom to top to get the full binary number 010101