Adrien_Horgnies

salt lottery because of time travel

Sep 23rd, 2020
546
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # The key is the ticket number, the value is the number of tickets bought for this number
  2. tickets = {
  3.     "123456789" : 10,
  4.     "987654321": 25,
  5.     "147852369": 41,
  6.     "369852147": 32,
  7. }
  8.  
  9. def mix_balls(salt):
  10.     pass # the machine actually mix and selects the balls
  11.  
  12. mix_balls(hash(tickets))
  13.  
RAW Paste Data