The history of the trade
A twentieth-century American invention with a very old idea inside it.
The fortune cookie is an American invention of the early twentieth century, most plausibly rooted in Japanese senbei sold in California and Hawaii — the folded cracker, the slip inside and the restaurant habit all have Japanese precedents. Several families in California claim the first machine; the claims are mutually exclusive and none is documented well enough to settle the matter.
The idea of a small written oracle delivered with food is much older than the cookie: Chinese restaurants and temple stalls had been handing out paper lots for centuries, and the Japanese senbei tradition included printed slips long before the American version. The cookie modernised the delivery, not the idea.
The cookie became a Chinese-restaurant fixture after the Second World War, when Chinese restaurants in the United States outnumbered Japanese ones and the senbei habit was absorbed into them. By the 1960s it was a national joke and a national oracle at once — the only fortune most Americans would ever draw.
This site treats the slip as a lot in the old sense: a short, slightly ambiguous statement that the reader has to finish. The lucky numbers are a twentieth-century addition to the form, and the reading keeps them separate from the sentence, as they should be.
This page separates what is documented from what is traditional and what is modern practice. Where the record is thin it says so; nothing here is cited that does not exist.