Let X be the random variable whose value is a random value equally likely to be anywhere in the range [0,1). Let Y be the random variable whose value is the absolute value of the difference between tw