Frank Stockton's "The Lady, or the Tiger?" builds its entire effect on a devastating irony: the protagonist believes the king and councilors know which door hides the lady/tiger, and that his choice can be logically deduced. In reality, no one knows — the outcome is pure chance masked as justice.
The irony underscores human helplessness before capricious power and the illusion of control. We build elaborate systems to disguise randomness as justice — and the story forces us to confront that lie.