Sometimes fate brings people together. It happens for Megan (Analeigh Tipton), who’s been dumped by her fiancé, and Alec (Miles Teller), a bank worker, when they meet through a dating site and have a one-night stand in Brooklyn.

By the next morning, New York has been hit by a blizzard that a TV weatherman (Michael Showalter) describes in increasingly hyperbolic terms. The door to Alec’s building won’t open because there’s so much snow. That means that the couple, despite having already had sex, must now deal with introductory jitters.

Under the direction of Max Nichols (son of Mike Nichols), Ms. Tipton (“Damsels in Distress”) and Mr. Teller (“The Spectacular Now”) find a germ of truth in this comic duet. Freed from formalities — and aided, perhaps, by the disinhibiting influence of pot — the pair have time to let their guard down when they might normally repel.

Starting with its “Breakfast Club”-like claustrophobia, “Two Night Stand” aspires to the breeziness of a 1980s John Hughes offering. There’s plenty to quarrel with. The blizzard device is strained, at best. (To paraphrase Alec, it’s fortunate that they don’t live in Minnesota.) Not content with talk and sex, the film adds a break-in subplot and an antic New Year’s finale. The title cries out for emergency hyphenation.

But it’s hard not to root for this couple — and, more to the point, these actors — to get together again. BEN KENIGSBERG