Add a random functions.