Example:Area of rectangle as a random variable

From CS2800 wiki

For example, suppose we modeled an experiment where we randomly selected a rectangle from a given set. We might have random variables [math]W [/math] and [math]H [/math] that give the width and height of the selected rectangle. We could then define a new "area" random variable by multiplying [math]W [/math] and [math]H [/math]; this would work as expected: to find the area of a given outcome, you would measure the width and the height and then multiply them (since by definition, [math]A(s) = (W·H)(s) = W(s)H(s) [/math]).