Python Generate a Random Number

Published on Apr 27, 2022

In this snippet, we will generate a random number.

Find

The code:

import random

print(random.randint(0,50))

Output:

8

Run the program in our IDE.