📜  什么是随机数生成器种子 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:23.444000             🧑  作者: Mango

代码示例3
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='')