Updated Index generateID to produce better random ids. Was seeing collisions for large lattices.