Added random generator for Puzzle.