My wife rewatched One Tree Hill every couple of years. I don’t like the show, but it’s batshit crazy.
I’m convinced they had a system to their writing. I think they would right an episode with a logical conclusion. They would then roll a die. If it landed in 6 they would rewrite the last 5 minutes in the opposite, craziest way they could. They would use the die roll method for the first 5 minutes & the last 5 minutes of every episode. It was genius. That’s how they ended up with scenes like someone carrying a heart transplant cooler tripping over a dog’s leash in the waiting room, spilling the heart onto the floor, & the dog eating the heart in front of the would be transplant recipient. They’d also go things like end an episode by having a character that hadn’t been on the show in a few years come out of nowhere & hit someone in the face with a shovel.