+ 1

Is the randint predefined in the random module? Or is it made-up?

5th Mar 2018, 4:54 AM
Miguel Guerrero
Miguel Guerrero - avatar
7 Answers
+ 1
I don’t really know, all I know are the very basics of python. And I know randint is from the random module.
5th Mar 2018, 5:02 AM
Jax
Jax - avatar
5th Mar 2018, 6:08 AM
David Ashton
David Ashton - avatar
+ 3
very useful, thank you.
5th Mar 2018, 6:11 AM
Miguel Guerrero
Miguel Guerrero - avatar
+ 1
Randint is from the module random.
5th Mar 2018, 4:56 AM
Jax
Jax - avatar
+ 1
Oh ok thank you. But how do you know what is predefined in a module?
5th Mar 2018, 5:01 AM
Miguel Guerrero
Miguel Guerrero - avatar
+ 1
Thank you regardless. I come from a java background, so some python stuff still trows me off.
5th Mar 2018, 5:06 AM
Miguel Guerrero
Miguel Guerrero - avatar
+ 1
That’s fine! I’m far from a master.
5th Mar 2018, 5:07 AM
Jax
Jax - avatar