Small functions for getting random data