+ 1
Python3. How to use random?
How to use random?
1 Antwort
+ 3
There are different random functions which you can import from the module random. For example:
from random import randint
This gives you a random int between two numbers, for example 1 and 100:
x = randint(1, 100)