random numbers in python 2022-09-28 import random print ( random.randrange(1,10) ) or x = int(input("enter a value : ")) y = int(input("enter the last value : ")) print ( random.randrange(x,y) ) Twitter WhatsApp Telegram Facebook