📜  生成 3 个 100 到 999 之间可被 5 整除的随机整数 - Python 代码示例

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

代码示例1
import random

print("Generating 3 random integer number between 100 and 999 divisible by 5")
for num in range(3):
    print(random.randrange(100, 999, 5), end=', ')