📜  random.seed - 任何代码示例

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

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