Document the random function