📜  生成随机数python代码示例

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

代码示例6
import random
lower_limit = 0 # Can be anything
upper_limit = 100 # Again, can be anything
# Print it out
print(f"Here is a random number: {random.randint(lower_limit, upper_limit)}