Puzzle to have threads generate random timed tasks