05-19-2018, 01:12 PM
Hello,
here is the new version of UK Thunderball picker, using less typing in code, and having more comment lines showing what it is doing.
![[Image: thundernext.png]](https://preview.ibb.co/fuMa88/thundernext.png)
Screenshot showing Thunderball picker running on Linux Lite in Terminal, and showing code in Gedit.
Here is the code -
Copy paste the code into a Leafpad document in Home folder named thundernext.py
To run the code -
Open your terminal by holding down Ctrl + Alt then pressing t (Ctrl+Alt+t)
Copy paste or type in to your terminal
Press Enter.
I hope you enjoyed reading this.
here is the new version of UK Thunderball picker, using less typing in code, and having more comment lines showing what it is doing.
![[Image: thundernext.png]](https://preview.ibb.co/fuMa88/thundernext.png)
Screenshot showing Thunderball picker running on Linux Lite in Terminal, and showing code in Gedit.
Here is the code -
Code:
# imports random function
import random
# labelling for thunderball output
print ("Your numbers are - ")
# Picks 5 random numbers between 1 and 39
# range goes to 40 so that 39 is inclusive, 40 is not inclusive
# .sample does not duplicate numbers picked
# Outputs these 5 results in a list
print(random.sample(range(1, 40),5))
print ("Your Thunderball number is - ")
print(random.sample(range(1, 15),1))
# interactivity - prints options
print ("You have Options - " "\nDonate a percentage of any wins to your favorite project" "\nDonate the stake instead to your favorite project")
Copy paste the code into a Leafpad document in Home folder named thundernext.py
To run the code -
Open your terminal by holding down Ctrl + Alt then pressing t (Ctrl+Alt+t)
Copy paste or type in to your terminal
Code:
thundernext.py
Press Enter.
I hope you enjoyed reading this.