random
The random module can be imported with the statement import random.
import random
The random module is used to generate random numbers.
random.randint(a, b)
a
b
a <= b
random.random()
random.choice(list)
list
random.shuffle(list)
random.seed(int)
int
There was an error while loading. Please reload this page.