Who writes fortune cookies?

The New Yorker has taken some trouble to find out. It all came to light when a number that had appeared in a fortune cookie came up in the US Powerball lottery and 110 people rather than the usual handful turned up to claim their reward.