Working disordered lattice reference code