Make randomly generated grids more consistent