If the probability density function of a random variable (or vector) X is given as f X (x), it is possible (but often not necessary; see below) to calculate the probability density function of some variable Y = g (X). This is also called a "change of variable" and is in practice used to generate a random variable of arbitrary shape f g (X) = f Y using a known (for instance, uniform) random number generator.