CodeNewbie Community

Discussion on: How can I generate random numbers in Python?

Collapse
swizzard profile image
Sam Raker
from random import randint

range_min = 0
range_max = 10

a_number = randint(range_min, range_max)
Enter fullscreen mode Exit fullscreen mode