Lottery simulator written in Java