Algebra of random variables