+ 1

what is randint

4th Nov 2019, 9:41 AM
Ravi Pratap
Ravi Pratap - avatar
3 ответов
+ 2
A function for producing random integer number in python Syntax: randint(startingValue, EndingValue) import random module for using it.
4th Nov 2019, 9:45 AM
Nitin Tiwari
Nitin Tiwari - avatar
+ 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
4th Nov 2019, 11:06 AM
Ipang
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
4th Nov 2019, 10:43 AM
Happy