# 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 and that give the width and height of the selected rectangle. We could then define a new "area" random variable by multiplying and ; 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, ).