Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # continue_seed.py
- import random
- import time
- RND__ = str(random.randint(1000, int('9'*99)))
- def continue_seed():
- t = RND__
- for _ in '.'*200:
- t += str(time.perf_counter()).replace('.','')[6:]
- t = int(t)
- print(t)
- random.seed(t)
- def rnd_gen(seed=-1):
- if seed != -1:
- random.seed(12345)
- print('SEED =', seed)
- for i in range(10):
- num1 = random.randint(1000, 9999)
- print(num1, end=' ')
- print('\n')
- # set the initial seed value
- continue_seed()
- rnd_gen()
- rnd_gen(12345)
- continue_seed()
- rnd_gen()
- rnd_gen(12345)
- continue_seed()
- rnd_gen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement