1# imports random
2import random
3# randint generates a random integar between the first parameter and the second
4print(random.randint(1, 100))
1# I know somebody else has made a similar thing from mine.
2# Just letting you know that I didn't mean to copy his idea for this code.
3# If you saw this, I recommend check the other answers out, too.
4# Hope you guys understand...
5from random import randint
6
7# Prints a random number in between 1 and 1000
8print(f"Here is a random number: {randint(1, 1000)}")