On October 13, 2011, NBC aired the fourth episode of Community's third season — "Remedial Chaos Theory," written by Chris McKenna and directed by Jeff Melman. It is set almost entirely inside one apartment, during Troy and Abed's housewarming party at their new "apartment of perpetual virginity." And its entire plot hinges on the laziest decision in sitcom history: the pizza has arrived downstairs, nobody wants to fetch it, so Jeff rolls a Yahtzee die to pick someone.
Abed, the group's resident pop-culture oracle, warns him: he's creating six different timelines. Jeff rolls anyway. Seven timelines unfold — six from the die's faces, plus a seventh, canonical one in which Abed catches the die mid-roll and the group sends Jeff down himself.
Sources: Wikipedia — Remedial Chaos Theory, Grantland — episode recap
Here's why the episode is a masterclass, not just a gimmick. Each timeline removes exactly one member of the study group from the room for a few minutes — and shows how the night warps without them. It's a character study disguised as a sci-fi gag: you learn what each person does for the group by watching the group wobble in their absence.
The construction is obsessive. Small threads run through all seven timelines like a control experiment: Jeff bangs his head on the ceiling fan in every single one; The Police's "Roxanne" plays on an iPod speaker in all but the prime timeline, with Britta singing along until Jeff shuts her down. The episode was so heavy on visual effects and logistics that it was bumped a week — it was meant to air third, and "Competitive Ecology" went out ahead of it.
And the show took its own continuity seriously enough that after fans argued over which timeline was the "real" one, creator Dan Harmon posted on Tumblr to settle it: the prime timeline — Abed catches the die, Jeff is exposed as "a selfish hooligan," the group sends him down for the pizza. "That is the 'real' timeline," he wrote. "As much fun as we want to have, we never want to confuse you or lie to you."
Sources: TV Tropes — episode recap, Community Wiki — Harmon's Tumblr post
Then there's the timeline where the die sends Troy. He comes back upstairs to an apartment on fire, Pierce spraying arterial blood from a gunshot wound, the group at each other's throats. The end tag pushes it past farce into legend: Pierce is dead, Jeff has lost an arm, Troy's larynx is wrecked after he eats a burning troll statue to put it out, Annie is institutionalized, Shirley has become an alcoholic — and Britta, to her own fury, has only dyed a blue streak in her hair.
Abed dubs it the darkest timeline. Then he and Troy don felt goatees as their "evil" selves, perform their signature handshake, and plot to cross over into the "Prime" timeline to take their duplicates' lives — while back in the prime timeline, Abed gets an ominous feeling that something is wrong.
Sources: Wikipedia, The Mary Sue — what the darkest timeline tells us
After the 2016 US election, the gif most often shared online was from Troy's timeline — the moment he walks back into the burning apartment while Jeff rolls a one. A 21-minute sitcom episode about a pizza delivery had invented vocabulary for collective despair: "we're in the darkest timeline" became the internet's way of saying reality had taken the worst possible branch. Not bad for a joke that started with a felt goatee.
Source: The Mary Sue
The episode's final trick is that the dice never mattered. Every timeline was a viable version of the night; the prime timeline isn't better because of better luck, but because Abed refuses the premise — he catches the die and says what the whole episode was really about: "The universe is an endless raging sea of randomness. Our job isn't to fight it but to weather it together… It won't matter what happens to us as long as we stay honest and accepting of each other's flaws and virtues."
It's the rare sci-fi gag episode that lands on sincerity: the chaos isn't the point. The people you weather it with are.