Skip to content

Instantly share code, notes, and snippets.

@Demandrel
Created February 16, 2023 14:36
Show Gist options
  • Save Demandrel/b20e8ef40df9e4c31b0e1fe9b8dfb20a to your computer and use it in GitHub Desktop.
Save Demandrel/b20e8ef40df9e4c31b0e1fe9b8dfb20a to your computer and use it in GitHub Desktop.
LoterieOtree
# 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