randcorr for gallery