Implemented new routine to generate random grid points