Random Number Generation: Generate a random number within a specified range (e.g., 1 to 100).

Avinash Mathi - Aug 14 - - Dev Community

Random number: To generate number in python ,randint()functionis used the function defined in random module
program
for i in range(1,100):
print(i)
o/p
1 to end 100

. . . . . . . . . . . . . . . . . . . . . . . . .