don't know if this has already been posted but its the most plausible explanation and demo that i've seeen http://charlottegore.com/2009/09/10/derren-brown-lottery-prediction-how-he-did-it.html