+ 1
what is randint
3 Respuestas
+ 2
A function for producing random integer number in python
Syntax: randint(startingValue, EndingValue)
import random module for using it.
+ 2
Ravi Pratap
You can tag 'Python' rather than 'ghh' which has no meaning and irrelevant with question's topic.
For future reference follow this tips for posting a question 👍
https://www.sololearn.com/Discuss/333866/?ref=app
0
This function in in Python production random integer numbers. It's don't working if you don't print 'import.random' this function don't work.
import random
random.randint(from_value, to_value)
you can use the third argument to select each x number
randint(from_value, to_value, each'x'number)
import random
random.randint(1,101,2)
3 it's impossible
if you use randint, forward you must print "random."
my answer better then he, why his answer nicer?
https://code.sololearn.com/ckkP1vGzPQf1/?ref=app