For questions about importing modules in Python
Importing modules with python:
import random
You can use functions from the random module by writing random.
in front of the function, for example random.randint
import random as rand
The same as above but instead writing rand.
before the function
from random import ...
imports specific functions, or *
for all into your program, you can call the functions as if they were in the file without writing anything before them.