from random import randint
seed = []
max_range = randint(1, 31)
for i in range(0, max_range):
if len(str(seed)) < 32:
seed_bytes = randint(0, 9)
seed.append(seed_bytes)
else: break
print(*seed, sep='')
The seed() method is used to initialize the random number generator.
The random number generator needs a number to start with (a seed value),
to be able to generate a random number. By default the random number
generator uses the current system time
A random seed (or seed state, or just seed) is a number (or vector) used to initialize a pseudorandom number generator. ... Random seeds are often generated from the state of the computer system (such as the time), a cryptographically secure pseudorandom number generator or from a hardware random number generator.