Predicting lottery numbers from past draws