Program for random task generation.