Early on in the episode, it is given that John practices Capnomancy, which is divination using smoke, and uses it to predict correct lottery numbers (with reasonable accuracy). Chas even gives him a wad of cash at the beginning to the episode based on his most recent predictions.