A genetic algorithm factor for the discretization of homogeneous random fields