Generator Functions Any type of function that generates or helps generating input data is here (arrays, trees, graphs etc.). For basic random number generation, Python's built-in random package will do the job well.