#Lottery - Playing with computer (using java programming) Random Methods and conditional if-else Lottery is a game where the player must choose a number between 1 and 10 that is the same as the ###computer (random mode) played.