The DMG has provisions for the GM treating a prolonged search as a roll of a 20, but that's it. Of course, unless the GM says otherwise, nothing stops you from just rolling the die until you get a 20.

(Dungeons & Dragons)
Rulebook featuring "high magic" options, including a host of new spells.