This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Monday, 20 September 2021
Python: Generate random integer
‘random.randint(min_value,
max_value)’ generate a random integer including both min_value and max_value.
random_int.py
import random
print(random.randint(10, 100))
print(random.randint(10, 100))
print(random.randint(10, 100))
No comments:
Post a Comment