Elementary applications of probability theory