+ 1
Is the randint predefined in the random module? Or is it made-up?
7 Réponses
+ 1
I don’t really know, all I know are the very basics of python. And I know randint is from the random module.
+ 8
You can get the source code from GitHub e.g.
https://github.com/JUMP_LINK__&&__python__&&__JUMP_LINK/cpython/blob/3.6/Lib/random.py
and read about the components here
https://docs.python.org/3/library/random.html
+ 3
very useful, thank you.
+ 1
Randint is from the module random.
+ 1
Oh ok thank you. But how do you know what is predefined in a module?
+ 1
Thank you regardless. I come from a java background, so some python stuff still trows me off.
+ 1
That’s fine! I’m far from a master.