I saw a video in which four adults were led into a room with a digital counter on the wall (see below), and a collection of random objects on the floor: small boxes, hand tools, stuffed animals, random things.
The subjects were instructed to make the counter increment to 229, 230, 231, etc, but they weren't told exactly how. Their only clue was that they must move the objects around, and move their bodies around, and if they did it correctly, the counter would increment.
The subjects tried many things, but it seemed very complicated. Every once in a while it would work, but they couldn't figure out what they had done. Their movements became more and more elaborate, and comical, and it would work sometimes, but never consistently.
After 30 minutes or so, the researchers explained to the subjects that the counter had been set to increment randomly. The subjects only believed they had control, and it led them to engage in complex, ritual-seeming behavior.
I don't remember where I saw the video. Hoping to find it again, I would like to know if there is a name for this type of experiment, a category name, something I can google to find the video again, or anything like it. I've tried quite a few search terms to no avail: "magical thinking", "illusion of control", "rain dance", "causation and ritual", and similar.