what does the randint command do in python

Solutions on MaxInterview for what does the randint command do in python by the best coders in the world

showing results for - "what does the randint command do in python"
Elias
18 Sep 2020
1 the randint() method in Python returns a random integer value between the two lower and higher limits (including both limits) provided as two parameters.
2  
3  ## example
4  
5 import random
6
7RANDOM = random.randint(1, 10) # This basically says RANDOM is a random number between 1 and 10
8
9print("Here is a random number between 1 and 10 {}".format(RANDOM))
10# Result - Here is a random number between 1 and 10 <SOME RANDOM NUMBER>
similar questions
queries leading to this page
what does the randint command do in python