A relatively simple formula is presented for the probability distribution of the number K of components of a random function. This formula facilitates the (computer) calculation of the factorial moments of K and yields new expressions for the mean and variance of K.