📜  如何在python代码示例中制作随机数生成器

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

代码示例6
# We'll be using the random module for this code
import random
# Let's first get the range of numbers from which they want a random number
start = int(input('What is the lowest number you would expect'))
end = int(input('What is the largest number you would expect'))
print('This is the number',random.randint(start,end))