Direct generation of 2D arrays of random numbers for high-fidelity optical ghost diffraction and information transmission through scattering media