Python Program to Generate Random Variable - Python for Data Analytics

Python Programs | Python Tricks | Solution for problems | Data Cleaning | Data Science

Python Program to Generate Random Variable

Source Code:

# Program to generate a random number between 0 and 9

# import the random module
import random

print(random.randint(0,9))


Output:

Each time you run the program probably you got to observe different results

1st execution
2nd execution

No comments:

Post a Comment