how to use a random function in python code example Example: how to import random in python import random