Explanation of the code: 
This is just a direct copy of the original code. All it does is calculating random Gaussians.