You have to make a random sequence (E.g. down, left, down, up, left, right, left, and make a map that follows that path (like using disappearing tiles or putting keys and buttons that effect the map in some way to force the player to find that special sequence).