Program used to analyse lottery