How to Generate Random Numbers in Python | LearnPython.com
learnpython.com › blog › python-random-numberDec 19, 2019 · Easily: In the code above, randint () is called with two arguments: the starting number (which in this case is 0) and the ending number (which is 9). By calling randint () with the arguments 0 and 9, we're telling Python to return a random integer number from 0,1,2,3,4,5,6,7,8, 9.