Random Gaussian function