How to win the Euro Jackpot with Python

How to win the Euro Jackpot with Python
How to win the Euro Jackpot with Python

This is of course not a guide on how to win the Euro Jackpot!

This is just a random generator that provides a line of numbers that corresponds to the Euro Jackpot.

To get the big reward from the Eurojackpot, you need to guess 5 numbers right + 2-star numbers right.

That is 1 : 95,344,200 chance. (You can read more about the EuroJackpot here)

What I have created, is a python script, that prints 5 numbers, and 2-star numbers.

The 5 numbers need to be between 1 – 50, while the star numbers need to be between 1- 10.

The following code looks like this:

import random

Euronumber = []
Euronumber1 = []

for i in range (0,5):
    number = random.randint(1,50)
    while number in Euronumber:
        number = random.randint(1,50)
        
    Euronumber.append(number)
    
Euronumber.sort()

for j in range (0,2):
    lnumber = random.randint(1,10)
    while lnumber in Euronumber1:
        lnumber = random.randint(1,10)
        
    Euronummer1.append(lnummer)
    
Euronummer1

print("Lotto Numbers Today: ")
print(Euronumber)
print("Star Numbers Today: ")
print(Euronumber1)

Disclaimer: The author makes no warranties, guarantees or representations, of any kind, express or implied, as to the usefulness, completeness, or reliability of the information contained in the codes.

Play Responsibly. Never spend more than you can afford on any lottery product. Please remember, it’s just a game.