removed friendliness, it is off topic here Admin says.
![[Image: lot.png]](https://preview.ibb.co/hfQrfd/lot.png)
UK lottery random number picker, showing the Python code, and the successful running of this in Linux Lite Terminal.
Here is the code -
Copy/paste this into a leafpad file in your Home Directory and name this file lot.py
To run the file do -
Hold down Ctrl + Alt and press t (Ctrl+Alt+t)
Copy/paste or type in to your terminal
The output will be of the form shown in the above screenshot, that is 6 numbers randomly picked from the 59 as you would do on a lottery ticket in UK.
Then choose your options in real life (interactive)
EU Lottery picker -
![[Image: eulot.png]](https://preview.ibb.co/bRo2Ld/eulot.png)
EU lottery screenshot, showing Python code and the successful running of this in Linux Lite terminal.
This will pick from the 50 numbers your 5 numbers.
It will also pick from the 12 numbers your 2 lucky star numbers.
It will also output text with lifestyle options (interactivity)
Here is the code -
Copy/paste this into a leafpad file in your Home Directory and name this file eulot.py
To run the file do -
Hold down Ctrl + Alt and press t (Ctrl+Alt+t)
Copy/paste or type in to your terminal
I hope it was interesting to read.
![[Image: lot.png]](https://preview.ibb.co/hfQrfd/lot.png)
UK lottery random number picker, showing the Python code, and the successful running of this in Linux Lite Terminal.
Here is the code -
Code:
from random import *
lottochoices = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59]
# Picks 6 lotto numbers from the choices
x = sample(lottochoices, 6)
print x
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
Copy/paste this into a leafpad file in your Home Directory and name this file lot.py
To run the file do -
Hold down Ctrl + Alt and press t (Ctrl+Alt+t)
Copy/paste or type in to your terminal
Code:
python lot.py
The output will be of the form shown in the above screenshot, that is 6 numbers randomly picked from the 59 as you would do on a lottery ticket in UK.
Then choose your options in real life (interactive)
EU Lottery picker -
![[Image: eulot.png]](https://preview.ibb.co/bRo2Ld/eulot.png)
EU lottery screenshot, showing Python code and the successful running of this in Linux Lite terminal.
This will pick from the 50 numbers your 5 numbers.
It will also pick from the 12 numbers your 2 lucky star numbers.
It will also output text with lifestyle options (interactivity)
Here is the code -
Code:
from random import *
euchoices = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50]
luckystars = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
# Picks 5 lotto numbers from the choices
x = sample(euchoices, 5)
# Picks your lucky stars
y = sample(luckystars, 2)
print x
print y
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
Copy/paste this into a leafpad file in your Home Directory and name this file eulot.py
To run the file do -
Hold down Ctrl + Alt and press t (Ctrl+Alt+t)
Copy/paste or type in to your terminal
Code:
python eulot.py
I hope it was interesting to read.