Prove that a function X: 0 --+ IR is a random variable if and only if X is constant over each partition set Ai'