Advertisement
Snuggledash

VIzon.py

May 18th, 2022
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import random, struct, sys
  4.  
  5. # this is a bytestring of any length, e.g. b'butt' or b'0]\xf8\xdd\xc9H\xd0n\xe7^2ya\xdb'
  6. _SECRET_SAUCE = b''
  7. vizon_range = range(1, 30)
  8. vizon_numbers = 6
  9.  
  10. def prng_vizon_bet(number):
  11.     seed = bytearray(_SECRET_SAUCE)
  12.     seed.extend(struct.pack('!I', number))
  13.     prng = random.Random()
  14.     prng.seed(seed, version=2)
  15.     return prng.sample(vizon_range, vizon_numbers)
  16.  
  17. if __name__ == '__main__':
  18.     if len(sys.argv) > 2:
  19.         (fro, to) = map(int, sys.argv[1:3])
  20.     else:
  21.         fro = 1
  22.         to = int(sys.argv[1])
  23.     for no in range(fro, to+1):
  24.         print(f"{no:6d}  /msg VIzon BET", *sorted(prng_vizon_bet(no)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement