Lattice points and generic points