Given a mean (vector) and a standard deviation (vector) , and a (vector of) noise from a spherical standard gaussian , we can sample from the gaussian with mean and standard deviation by scaling and shifting the noise:

where denotes the element-wise product.
This is also called the reparametrization trick.