+ 1

How to use random in python?

I want to learn.

26th Nov 2019, 6:12 PM
Arydev
Arydev - avatar
3 Respostas
+ 3
You need to import random by this comend: Import random And then use the randint function like this: Var = random.randint(num,higher num)
26th Nov 2019, 6:37 PM
‎‫omri
‎‫omri - avatar
+ 2
I am not be able to enter on the site.
26th Nov 2019, 6:36 PM
Arydev
Arydev - avatar
+ 1
It's not difficult to dig resources out of the web. This is very exhaustive with examples: https://pynative.com/JUMP_LINK__&&__python__&&__JUMP_LINK-random-module/ Happy learning
26th Nov 2019, 6:18 PM
Bilbo Baggins
Bilbo Baggins - avatar