Generate a random lattice.
Label the clusters in the lattice.
Pick up the infinite cluster.
Identify the internal structure.