Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import random, struct, sys
- # this is a bytestring of any length, e.g. b'butt' or b'0]\xf8\xdd\xc9H\xd0n\xe7^2ya\xdb'
- _SECRET_SAUCE = b''
- vizon_range = range(1, 30)
- vizon_numbers = 6
- def prng_vizon_bet(number):
- seed = bytearray(_SECRET_SAUCE)
- seed.extend(struct.pack('!I', number))
- prng = random.Random()
- prng.seed(seed, version=2)
- return prng.sample(vizon_range, vizon_numbers)
- if __name__ == '__main__':
- if len(sys.argv) > 2:
- (fro, to) = map(int, sys.argv[1:3])
- else:
- fro = 1
- to = int(sys.argv[1])
- for no in range(fro, to+1):
- print(f"{no:6d} /msg VIzon BET", *sorted(prng_vizon_bet(no)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement