Dr Marcus du Sautoy gave a presentation at the 2014 IFTA conference in London, organized by the UK Society of Technical Analysts.
He got the audience to participate in an exercise to demonstrate the probability behind the UK lottery.
This is a python simulation of that exercise.
The video of the talk is here library.