Created
February 16, 2023 14:36
-
-
Save Demandrel/b20e8ef40df9e4c31b0e1fe9b8dfb20a to your computer and use it in GitHub Desktop.
LoterieOtree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Online Python - IDE, Editor, Compiler, Interpreter | |
import random | |
loteries = [(15, 20, 65), | |
(10, 20, 70), | |
(25, 15, 60)] | |
current_lot_nb = random.randint(1,len(loteries)) #tu tires un nombre aléatoire entre 1 et ton nombre max de loterie | |
current_lot = loteries[current_lot_nb-1] #recupere la loterie du round actuel | |
print(current_lot_nb) | |
print(current_lot) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment